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:
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.DialogCloseListener, org.apache.pivot.wtk.DialogListener, org.apache.pivot.wtk.DialogStateListener, org.apache.pivot.wtk.FrameListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual, org.apache.pivot.wtk.Window.Skin, org.apache.pivot.wtk.WindowListener, org.apache.pivot.wtk.WindowStateListener
Direct Known Subclasses:
TerraAlertSkin

public class TerraDialogSkin
extends TerraFrameSkin
implements org.apache.pivot.wtk.DialogListener, org.apache.pivot.wtk.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
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.DialogStateListener
org.apache.pivot.wtk.DialogStateListener.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
 
Constructor Summary
TerraDialogSkin()
           
 
Method Summary
 void dialogClosed(org.apache.pivot.wtk.Dialog dialog, boolean modal)
           
 void dialogCloseVetoed(org.apache.pivot.wtk.Dialog dialog, org.apache.pivot.util.Vote reason)
           
 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 dialog with a 'result' of true.
 void modalChanged(org.apache.pivot.wtk.Dialog dialog)
           
 boolean mouseDown(org.apache.pivot.wtk.Container container, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog dialog, boolean result)
           
 void windowClosed(org.apache.pivot.wtk.Window window, org.apache.pivot.wtk.Display display, org.apache.pivot.wtk.Window owner)
           
 void windowOpened(org.apache.pivot.wtk.Window window)
           
 
Methods inherited from class org.apache.pivot.wtk.skin.terra.TerraFrameSkin
activeChanged, getClientArea, getPadding, getPreferredHeight, getPreferredSize, getPreferredWidth, getShowCloseButton, getShowContentBevel, getShowMaximizeButton, getShowMinimizeButton, getShowWindowControls, iconAdded, iconsRemoved, isResizable, layout, maximizedChanged, menuBarChanged, mouseDown, mouseMove, mouseUp, paint, setBackgroundColor, setBackgroundColor, setPadding, setPadding, setPadding, setPadding, setPadding, setResizable, setShowCloseButton, setShowContentBevel, setShowMaximizeButton, setShowMinimizeButton, setShowWindowControls, titleChanged
 
Methods inherited from class org.apache.pivot.wtk.skin.WindowSkin
contentChanged, iconInserted, previewWindowClose, previewWindowOpen, windowCloseVetoed, windowOpenVetoed
 
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseMove, mouseUp, mouseWheel, 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, mouseClick, mouseOut, mouseOver, 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
 

Constructor Detail

TerraDialogSkin

public TerraDialogSkin()
Method Detail

install

public void install(org.apache.pivot.wtk.Component component)
Specified by:
install in interface org.apache.pivot.wtk.Skin
Overrides:
install in class TerraFrameSkin

mouseDown

public boolean mouseDown(org.apache.pivot.wtk.Container container,
                         org.apache.pivot.wtk.Mouse.Button button,
                         int x,
                         int y)
Specified by:
mouseDown in interface org.apache.pivot.wtk.ContainerMouseListener
Overrides:
mouseDown in class org.apache.pivot.wtk.skin.WindowSkin

keyPressed

public boolean keyPressed(org.apache.pivot.wtk.Component component,
                          int keyCode,
                          org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
ENTER Close the dialog with a 'result' of true.
ESCAPE Close the dialog with a 'result' of false.

Specified by:
keyPressed in interface org.apache.pivot.wtk.ComponentKeyListener
Overrides:
keyPressed in class TerraFrameSkin

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

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

modalChanged

public void modalChanged(org.apache.pivot.wtk.Dialog dialog)
Specified by:
modalChanged in interface org.apache.pivot.wtk.DialogListener

previewDialogClose

public org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog dialog,
                                                     boolean result)
Specified by:
previewDialogClose in interface org.apache.pivot.wtk.DialogStateListener

dialogCloseVetoed

public void dialogCloseVetoed(org.apache.pivot.wtk.Dialog dialog,
                              org.apache.pivot.util.Vote reason)
Specified by:
dialogCloseVetoed in interface org.apache.pivot.wtk.DialogStateListener

dialogClosed

public void dialogClosed(org.apache.pivot.wtk.Dialog dialog,
                         boolean modal)
Specified by:
dialogClosed in interface org.apache.pivot.wtk.DialogCloseListener