|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ButtonSkin
pivot.wtk.skin.terra.TerraCalendarSkin.DateButtonSkin
public class TerraCalendarSkin.DateButtonSkin
Field Summary |
---|
Fields inherited from class pivot.wtk.skin.ButtonSkin |
---|
highlighted |
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraCalendarSkin.DateButtonSkin()
|
Method Summary | |
---|---|
void |
focusedChanged(Component component,
boolean temporary)
Called when a component's focused state has changed. |
java.awt.Color |
getColor()
|
java.awt.Color |
getDisabledColor()
|
java.awt.Font |
getFont()
|
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
java.awt.Color |
getSelectionColor()
|
void |
install(Component component)
Associates a skin with a component. |
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been pressed. |
boolean |
keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been released. |
boolean |
mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
Called when a mouse button is clicked over a component. |
void |
mouseOver(Component component)
Called when the mouse enters a component. |
void |
paint(java.awt.Graphics2D graphics)
Paints the visual. |
Methods inherited from class pivot.wtk.skin.ButtonSkin |
---|
actionChanged, buttonDataChanged, buttonPressed, dataRendererChanged, enabledChanged, groupChanged, layout, mouseOut, selectedKeyChanged, stateChanged, stateKeyChanged, toggleButtonChanged, triStateChanged, uninstall |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeColor, displayableChanged, getComponent, getHeight, getWidth, invalidateComponent, isFocusable, keyTyped, locationChanged, mouseDown, mouseMove, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerraCalendarSkin.DateButtonSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class ButtonSkin
component
- The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
height
- The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
width
- The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public void paint(java.awt.Graphics2D graphics)
Visual
graphics
- The graphics context in which to paint the visual.public java.awt.Font getFont()
public java.awt.Color getColor()
public java.awt.Color getDisabledColor()
public java.awt.Color getSelectionColor()
public void focusedChanged(Component component, boolean temporary)
ComponentStateListener
focusedChanged
in interface ComponentStateListener
focusedChanged
in class ButtonSkin
public void mouseOver(Component component)
ComponentMouseListener
mouseOver
in interface ComponentMouseListener
mouseOver
in class ButtonSkin
public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count)
ComponentMouseButtonListener
mouseClick
in interface ComponentMouseButtonListener
mouseClick
in class ComponentSkin
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
ComponentKeyListener
keyPressed
in interface ComponentKeyListener
keyPressed
in class ComponentSkin
public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
ComponentKeyListener
keyReleased
in interface ComponentKeyListener
keyReleased
in class ComponentSkin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |