org.apache.pivot.wtk.skin.terra
Class TerraSuggestionPopupSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.WindowSkin
org.apache.pivot.wtk.skin.terra.TerraSuggestionPopupSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.SuggestionPopupCloseListener, org.apache.pivot.wtk.SuggestionPopupListener, org.apache.pivot.wtk.SuggestionPopupSelectionListener, org.apache.pivot.wtk.SuggestionPopupStateListener, org.apache.pivot.wtk.Visual, org.apache.pivot.wtk.Window.Skin, org.apache.pivot.wtk.WindowListener, org.apache.pivot.wtk.WindowStateListener
public class TerraSuggestionPopupSkin
- extends org.apache.pivot.wtk.skin.WindowSkin
- implements org.apache.pivot.wtk.SuggestionPopupListener, org.apache.pivot.wtk.SuggestionPopupSelectionListener, org.apache.pivot.wtk.SuggestionPopupStateListener
Terra suggestion popup skin.
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.WindowSkin |
org.apache.pivot.wtk.skin.WindowSkin.WindowFocusTraversalPolicy |
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.SuggestionPopupListener |
org.apache.pivot.wtk.SuggestionPopupListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.SuggestionPopupSelectionListener |
org.apache.pivot.wtk.SuggestionPopupSelectionListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.SuggestionPopupStateListener |
org.apache.pivot.wtk.SuggestionPopupStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowListener |
org.apache.pivot.wtk.WindowListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener |
org.apache.pivot.wtk.WindowStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
org.apache.pivot.wtk.ContainerListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
org.apache.pivot.wtk.ContainerMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
|
Method Summary |
Color |
getBorderColor()
|
int |
getCloseTransitionDuration()
|
int |
getCloseTransitionRate()
|
Color |
getColor()
|
Font |
getFont()
|
void |
install(org.apache.pivot.wtk.Component component)
|
boolean |
keyPressed(org.apache.pivot.wtk.Component component,
int keyCode,
org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
ENTER Close the suggestion popup with a 'result' of
true. |
void |
listSizeChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
int previousListSize)
|
boolean |
mouseClick(org.apache.pivot.wtk.Component component,
org.apache.pivot.wtk.Mouse.Button button,
int x,
int y,
int count)
|
org.apache.pivot.util.Vote |
previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
boolean result)
|
void |
selectedIndexChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
int previousSelectedIndex)
|
void |
selectedSuggestionChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
Object previousSelectedSuggestion)
|
void |
setBorderColor(Color borderColor)
|
void |
setBorderColor(String borderColor)
|
void |
setCloseTransitionDuration(int closeTransitionDuration)
|
void |
setCloseTransitionRate(int closeTransitionRate)
|
void |
setColor(Color color)
|
void |
setColor(String color)
|
void |
setFont(org.apache.pivot.collections.Dictionary<String,?> font)
|
void |
setFont(Font font)
|
void |
setFont(String font)
|
void |
suggestionDataChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
org.apache.pivot.collections.List<?> previousSuggestionData)
|
void |
suggestionPopupClosed(org.apache.pivot.wtk.SuggestionPopup suggestionPopup)
|
void |
suggestionPopupCloseVetoed(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
org.apache.pivot.util.Vote reason)
|
void |
suggestionRendererChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
org.apache.pivot.wtk.ListView.ItemRenderer previousSuggestionRenderer)
|
void |
windowClosed(org.apache.pivot.wtk.Window window,
org.apache.pivot.wtk.Display display,
org.apache.pivot.wtk.Window owner)
|
void |
windowCloseVetoed(org.apache.pivot.wtk.Window window,
org.apache.pivot.util.Vote reason)
|
void |
windowOpened(org.apache.pivot.wtk.Window window)
|
| Methods inherited from class org.apache.pivot.wtk.skin.WindowSkin |
activeChanged, contentChanged, getClientArea, getPreferredHeight, getPreferredSize, getPreferredWidth, iconAdded, iconInserted, iconsRemoved, layout, maximizedChanged, mouseDown, previewWindowClose, previewWindowOpen, titleChanged, windowOpenVetoed |
| Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseMove, mouseUp, mouseWheel, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
| Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.pivot.wtk.Skin |
getComponent, isFocusable, isOpaque |
| Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
getBaseline, setSize |
| Methods inherited from interface org.apache.pivot.wtk.Visual |
getBaseline, getHeight, getWidth, paint |
TerraSuggestionPopupSkin
public TerraSuggestionPopupSkin()
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.WindowSkin
getFont
public Font getFont()
setFont
public void setFont(Font font)
setFont
public final void setFont(String font)
setFont
public final void setFont(org.apache.pivot.collections.Dictionary<String,?> font)
getColor
public Color getColor()
setColor
public void setColor(Color color)
setColor
public final void setColor(String color)
getBorderColor
public Color getBorderColor()
setBorderColor
public void setBorderColor(Color borderColor)
setBorderColor
public final void setBorderColor(String borderColor)
getCloseTransitionDuration
public int getCloseTransitionDuration()
setCloseTransitionDuration
public void setCloseTransitionDuration(int closeTransitionDuration)
getCloseTransitionRate
public int getCloseTransitionRate()
setCloseTransitionRate
public void setCloseTransitionRate(int closeTransitionRate)
mouseClick
public boolean mouseClick(org.apache.pivot.wtk.Component component,
org.apache.pivot.wtk.Mouse.Button button,
int x,
int y,
int count)
- Specified by:
mouseClick in interface org.apache.pivot.wtk.ComponentMouseButtonListener- Overrides:
mouseClick in class org.apache.pivot.wtk.skin.ComponentSkin
keyPressed
public boolean keyPressed(org.apache.pivot.wtk.Component component,
int keyCode,
org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
ENTER Close the suggestion popup with a 'result' of
true.
ESCAPE Close the suggestion popup with a 'result'
of false.
- Specified by:
keyPressed in interface org.apache.pivot.wtk.ComponentKeyListener- Overrides:
keyPressed in class org.apache.pivot.wtk.skin.ComponentSkin
windowOpened
public void windowOpened(org.apache.pivot.wtk.Window window)
- Specified by:
windowOpened in interface org.apache.pivot.wtk.WindowStateListener- Overrides:
windowOpened in class org.apache.pivot.wtk.skin.WindowSkin
windowCloseVetoed
public void windowCloseVetoed(org.apache.pivot.wtk.Window window,
org.apache.pivot.util.Vote reason)
- Specified by:
windowCloseVetoed in interface org.apache.pivot.wtk.WindowStateListener- Overrides:
windowCloseVetoed in class org.apache.pivot.wtk.skin.WindowSkin
windowClosed
public void windowClosed(org.apache.pivot.wtk.Window window,
org.apache.pivot.wtk.Display display,
org.apache.pivot.wtk.Window owner)
- Specified by:
windowClosed in interface org.apache.pivot.wtk.WindowStateListener- Overrides:
windowClosed in class org.apache.pivot.wtk.skin.WindowSkin
suggestionDataChanged
public void suggestionDataChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
org.apache.pivot.collections.List<?> previousSuggestionData)
- Specified by:
suggestionDataChanged in interface org.apache.pivot.wtk.SuggestionPopupListener
suggestionRendererChanged
public void suggestionRendererChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
org.apache.pivot.wtk.ListView.ItemRenderer previousSuggestionRenderer)
- Specified by:
suggestionRendererChanged in interface org.apache.pivot.wtk.SuggestionPopupListener
listSizeChanged
public void listSizeChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
int previousListSize)
- Specified by:
listSizeChanged in interface org.apache.pivot.wtk.SuggestionPopupListener
selectedIndexChanged
public void selectedIndexChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
int previousSelectedIndex)
- Specified by:
selectedIndexChanged in interface org.apache.pivot.wtk.SuggestionPopupSelectionListener
selectedSuggestionChanged
public void selectedSuggestionChanged(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
Object previousSelectedSuggestion)
- Specified by:
selectedSuggestionChanged in interface org.apache.pivot.wtk.SuggestionPopupSelectionListener
previewSuggestionPopupClose
public org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
boolean result)
- Specified by:
previewSuggestionPopupClose in interface org.apache.pivot.wtk.SuggestionPopupStateListener
suggestionPopupCloseVetoed
public void suggestionPopupCloseVetoed(org.apache.pivot.wtk.SuggestionPopup suggestionPopup,
org.apache.pivot.util.Vote reason)
- Specified by:
suggestionPopupCloseVetoed in interface org.apache.pivot.wtk.SuggestionPopupStateListener
suggestionPopupClosed
public void suggestionPopupClosed(org.apache.pivot.wtk.SuggestionPopup suggestionPopup)
- Specified by:
suggestionPopupClosed in interface org.apache.pivot.wtk.SuggestionPopupCloseListener