org.apache.pivot.wtk.skin.terra
Class TerraDialogSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.ContainerSkin
          extended by org.apache.pivot.wtk.skin.WindowSkin
              extended by org.apache.pivot.wtk.skin.terra.TerraFrameSkin
                  extended by org.apache.pivot.wtk.skin.terra.TerraDialogSkin
All Implemented Interfaces:
ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, ContainerListener, DialogCloseListener, DialogStateListener, FrameListener, Skin, Visual, Window.Skin, WindowListener, WindowStateListener
Direct Known Subclasses:
TerraAlertSkin

public class TerraDialogSkin
extends TerraFrameSkin
implements DialogStateListener

Dialog skin.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.terra.TerraFrameSkin
TerraFrameSkin.ButtonImage, TerraFrameSkin.CloseImage, TerraFrameSkin.FrameButton, TerraFrameSkin.FrameButtonSkin, TerraFrameSkin.MaximizeImage, TerraFrameSkin.MinimizeImage, TerraFrameSkin.ResizeImage, TerraFrameSkin.RestoreImage
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.WindowSkin
WindowSkin.WindowFocusTraversalPolicy
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin
ContainerSkin.IndexFocusTraversalPolicy
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.DialogStateListener
DialogStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowListener
WindowListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener
WindowStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
ComponentListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
ComponentStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
ComponentMouseListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
ComponentMouseButtonListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
ComponentKeyListener.Adapter
 
Field Summary
 
Fields inherited from class org.apache.pivot.wtk.skin.ComponentSkin
SHOW_TOOLTIP_TIMEOUT
 
Constructor Summary
TerraDialogSkin()
           
 
Method Summary
 void dialogClosed(Dialog dialog)
          Called when a dialog has closed.
 void dialogCloseVetoed(Dialog dialog, Vote reason)
          Called when a dialog close event has been vetoed.
 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.
 Vote previewDialogClose(Dialog dialog, boolean result)
          Called to preview a dialog close event.
 void uninstall()
          Dissociates a skin from a component.
 void windowClosed(Window window, Display display)
          Called when a window has closed.
 void windowOpened(Window window)
          Called when a window has opened.
 
Methods inherited from class org.apache.pivot.wtk.skin.terra.TerraFrameSkin
activeChanged, getClientArea, getPadding, getPreferredHeight, getPreferredSize, getPreferredWidth, getShowCloseButton, getShowMaximizeButton, getShowMinimizeButton, getShowWindowControls, iconChanged, isResizable, layout, maximizedChanged, menuBarChanged, mouseDown, mouseMove, mouseUp, paint, setBackgroundColor, setBackgroundColor, setPadding, setPadding, setPadding, setPadding, setPadding, setResizable, setShowCloseButton, setShowMaximizeButton, setShowMinimizeButton, setShowWindowControls, titleChanged
 
Methods inherited from class org.apache.pivot.wtk.skin.WindowSkin
contentChanged, ownerChanged, previewWindowClose, previewWindowOpen, windowCloseVetoed, windowMoved, windowOpenVetoed
 
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, setBackgroundColor, setBackgroundPaint, setBackgroundPaint
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getComponent, getHeight, getWidth, invalidateComponent, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseOut, mouseOver, mouseWheel, parentChanged, preferredHeightLimitsChanged, preferredSizeChanged, preferredWidthLimitsChanged, repaintComponent, repaintComponent, 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
 
Methods inherited from interface org.apache.pivot.wtk.Skin
getComponent, isFocusable, isOpaque
 
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual
setSize
 
Methods inherited from interface org.apache.pivot.wtk.Visual
getHeight, getWidth
 

Constructor Detail

TerraDialogSkin

public TerraDialogSkin()
Method Detail

install

public void install(Component component)
Description copied from interface: Skin
Associates a skin with a component.

Specified by:
install in interface Skin
Overrides:
install in class TerraFrameSkin
Parameters:
component - The component to which the skin is being attached.

uninstall

public void uninstall()
Description copied from interface: Skin
Dissociates a skin from a component.

Specified by:
uninstall in interface Skin
Overrides:
uninstall in class TerraFrameSkin

keyPressed

public boolean keyPressed(Component component,
                          int keyCode,
                          Keyboard.KeyLocation keyLocation)
Description copied from interface: ComponentKeyListener
Called when a key has been pressed.

Specified by:
keyPressed in interface ComponentKeyListener
Overrides:
keyPressed in class ComponentSkin
Returns:
true to consume the event; false to allow it to propagate.

windowOpened

public void windowOpened(Window window)
Description copied from interface: WindowStateListener
Called when a window has opened.

Specified by:
windowOpened in interface WindowStateListener
Overrides:
windowOpened in class WindowSkin

windowClosed

public void windowClosed(Window window,
                         Display display)
Description copied from interface: WindowStateListener
Called when a window has closed.

Specified by:
windowClosed in interface WindowStateListener
Overrides:
windowClosed in class WindowSkin

previewDialogClose

public Vote previewDialogClose(Dialog dialog,
                               boolean result)
Description copied from interface: DialogStateListener
Called to preview a dialog close event.

Specified by:
previewDialogClose in interface DialogStateListener

dialogCloseVetoed

public void dialogCloseVetoed(Dialog dialog,
                              Vote reason)
Description copied from interface: DialogStateListener
Called when a dialog close event has been vetoed.

Specified by:
dialogCloseVetoed in interface DialogStateListener

dialogClosed

public void dialogClosed(Dialog dialog)
Description copied from interface: DialogCloseListener
Called when a dialog has closed.

Specified by:
dialogClosed in interface DialogCloseListener