|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softsmithy.lib.swing.customizer.StateManager
public class StateManager
Nested Class Summary | |
---|---|
static class |
StateManager.BoundState
|
static class |
StateManager.DefaultState
The default state. |
static class |
StateManager.ResizeState
|
Constructor Summary | |
---|---|
StateManager(JCustomizer customizer)
|
Method Summary | |
---|---|
void |
configureCustomizer()
|
void |
focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. |
void |
focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. |
JCustomizer |
getCustomizer()
|
Color |
getCustomNormalBorderColor()
Getter for property customNormalBorderColor. |
Color |
getCustomSelectedBorderColor()
Getter for property customSelectedBorderColor. |
StateManager.ResizeState |
getEResizeState()
Getter for property eResizeState. |
StateManager.BoundState |
getMoveState()
Getter for property moveState. |
StateManager.ResizeState |
getNEResizeState()
Getter for property nEResizeState. |
Color |
getNormalBorderColor()
Getter for property normalBorderColor. |
State |
getNormalState()
Getter for property normalState. |
StateManager.ResizeState |
getNResizeState()
Getter for property nResizeState. |
StateManager.ResizeState |
getNWResizeState()
Getter for property nWResizeState. |
Color |
getSelectedBorderColor()
Getter for property selectedBorderColor. |
State |
getSelectedState()
Getter for property selectedState. |
StateManager.ResizeState |
getSEResizeState()
Getter for property sEResizeState. |
StateManager.ResizeState |
getSResizeState()
Getter for property sResizeState. |
StateManager.ResizeState |
getSWResizeState()
Getter for property sWResizeState. |
StateManager.ResizeState |
getWResizeState()
Getter for property wResizeState. |
boolean |
isUsingDefaultNormalBorderColor()
Getter for property usingDefaultNormalBorderColor. |
boolean |
isUsingDefaultSelectedBorderColor()
Getter for property usingDefaultSelectedBorderColor. |
void |
mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons down). |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
void |
setCurrentSelectedBorderColor(org.softsmithy.lib.swing.customizer.StateManager.BorderColor currentSelectedBorderColor)
Setter for property currentSelectedBorderColor. |
void |
setCustomNormalBorderColor(Color color)
|
void |
setCustomSelectedBorderColor(Color color)
|
protected void |
setState(State state)
|
void |
setStateBound(Point point)
|
void |
setStateEResize()
|
void |
setStateMove()
|
void |
setStateNEResize()
|
void |
setStateNormal()
|
void |
setStateNResize()
|
void |
setStateNWResize()
|
void |
setStateSelected()
|
void |
setStateSEResize()
|
void |
setStateSResize()
|
void |
setStateSWResize()
|
void |
setStateWResize()
|
void |
setUsingDefaultNormalBorderColor(boolean usingDefaultNormalBorderColor)
Setter for property usingDefaultNormalBorderColor. |
void |
setUsingDefaultSelectedBorderColor(boolean usingDefaultSelectedBorderColor)
Setter for property usingDefaultSelectedBorderColor. |
void |
unconfigureCustomizer()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateManager(JCustomizer customizer)
Method Detail |
---|
protected void setState(State state)
public void setStateBound(Point point)
public JCustomizer getCustomizer()
public void configureCustomizer()
public void unconfigureCustomizer()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseDragged(MouseEvent e)
MOUSE_DRAGGED
events will continue to be
delivered to the component where the drag originated until the
mouse button is released (regardless of whether the mouse position
is within the bounds of the component).
Due to platform-dependent Drag&Drop implementations,
MOUSE_DRAGGED
events may not be delivered during a native
Drag&Drop operation.
mouseDragged
in interface MouseMotionListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public StateManager.ResizeState getNResizeState()
public StateManager.ResizeState getEResizeState()
public StateManager.ResizeState getNWResizeState()
public State getNormalState()
public StateManager.ResizeState getNEResizeState()
public StateManager.BoundState getMoveState()
public State getSelectedState()
public StateManager.ResizeState getSEResizeState()
public StateManager.ResizeState getSResizeState()
public StateManager.ResizeState getSWResizeState()
public StateManager.ResizeState getWResizeState()
public void setStateNResize()
public void setStateEResize()
public void setStateNWResize()
public void setStateNormal()
public void setStateNEResize()
public void setStateMove()
public void setStateSelected()
public void setStateSEResize()
public void setStateSResize()
public void setStateSWResize()
public void setStateWResize()
public Color getNormalBorderColor()
public Color getSelectedBorderColor()
public boolean isUsingDefaultNormalBorderColor()
public void setUsingDefaultNormalBorderColor(boolean usingDefaultNormalBorderColor)
usingDefaultNormalBorderColor
- New value of property usingDefaultNormalBorderColor.public boolean isUsingDefaultSelectedBorderColor()
public void setUsingDefaultSelectedBorderColor(boolean usingDefaultSelectedBorderColor)
usingDefaultSelectedBorderColor
- New value of property usingDefaultSelectedBorderColor.public Color getCustomNormalBorderColor()
public void setCustomNormalBorderColor(Color color)
public Color getCustomSelectedBorderColor()
public void setCustomSelectedBorderColor(Color color)
public void setCurrentSelectedBorderColor(org.softsmithy.lib.swing.customizer.StateManager.BorderColor currentSelectedBorderColor)
currentSelectedBorderColor
- New value of property currentSelectedBorderColor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |