Class TLcdOkCancelButtonPanel

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
com.luciad.gui.awt.TLcdOkCancelButtonPanel
All Implemented Interfaces:
ILcdOkCancelButtonPanel, ImageObserver, MenuContainer, Serializable, Accessible

public class TLcdOkCancelButtonPanel extends Panel implements ILcdOkCancelButtonPanel
Deprecated.
use JOptionPane or another GUI toolkit equivalent instead
This is a util class that can be used as a Button Panel with Apply, Ok and Cancel Buttons. The 2 last are displayed if either a "WindowToDispose" has been set using the setWindowToDispose method, or if the Parent Container of this Panel is a Window, or if the parent of the parent Container if a Window, and has only one Component that is the parent of this TLcdButtonPanel.
See Also:
  • Constructor Details Link icon

    • TLcdOkCancelButtonPanel Link icon

      public TLcdOkCancelButtonPanel()
      Deprecated.
      Default constructor. The Layout is a FlowLayout with a right alignment. The buttons are from left to right: Apply, OK and Cancel.
  • Method Details Link icon

    • getHelpActionFactory Link icon

      public static ILcdHelpActionFactory getHelpActionFactory()
      Deprecated.
      Returns:
      The help action factory associated with this object. Default is null.
    • setHelpActionFactory Link icon

      public static void setHelpActionFactory(ILcdHelpActionFactory aHelpActionFactory)
      Deprecated.
      Sets the help action factory used to create an action listener for the help button.
      Parameters:
      aHelpActionFactory - The new factory to be used, or null if you don't want help buttons. Null is default.
    • setDisposeWindowOnOk Link icon

      public void setDisposeWindowOnOk(boolean aDisposeWindowOnOk)
      Deprecated.
    • getDisposeWindowOnOk Link icon

      public boolean getDisposeWindowOnOk()
      Deprecated.
    • setDisposeWindowOnCancel Link icon

      public void setDisposeWindowOnCancel(boolean aDisposeWindowOnCancel)
      Deprecated.
    • getDisposeWindowOnCancel Link icon

      public boolean getDisposeWindowOnCancel()
      Deprecated.
    • getComponent Link icon

      public Component getComponent()
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Returns the Component.
      Specified by:
      getComponent in interface ILcdOkCancelButtonPanel
    • setWindowToDispose Link icon

      public void setWindowToDispose(Window aWindowToDispose)
      Deprecated.
      Sets the Window to dispose when pressing of the OK or Cancel Button.
      Specified by:
      setWindowToDispose in interface ILcdOkCancelButtonPanel
    • getWindowToDispose Link icon

      public Window getWindowToDispose()
      Deprecated.
      Gets the Window to be disposed when pressing of the OK or Cancel Button, or null if no such Window has been set.
    • disposeParentWindow Link icon

      public void disposeParentWindow()
      Deprecated.
      Ask to dispose a Parent Window if possible. This method is called when pressing of the OK or Cancel Button.
    • paint Link icon

      public void paint(Graphics g)
      Deprecated.
      Overrides:
      paint in class Container
    • checkButtonPresence Link icon

      protected void checkButtonPresence()
      Deprecated.
      Check if the OK and Cancel Buttons are required or not, depending on the presence of a parent Window to dispose.
    • getHelpButton Link icon

      public Component getHelpButton()
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Returns the Help Component.
      Specified by:
      getHelpButton in interface ILcdOkCancelButtonPanel
    • getHelpIDString Link icon

      public String getHelpIDString()
      Deprecated.
      Specified by:
      getHelpIDString in interface ILcdOkCancelButtonPanel
      Returns:
      The help id string associated with the help button of this panel, default is null.
    • setHelpIDString Link icon

      public void setHelpIDString(String aHelpID)
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Sets the help id for the button. Pressing the help button will have the effect that the help item for the given help id will be displayed. Setting null means to remove the currently help id's. The presence of the help button depends on whether a help id is set or not.
      Specified by:
      setHelpIDString in interface ILcdOkCancelButtonPanel
      Parameters:
      aHelpID - The help id for the help button.
    • addActionListener Link icon

      public void addActionListener(ActionListener aActionListener)
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Add aActionListener to all the buttons.
      Specified by:
      addActionListener in interface ILcdOkCancelButtonPanel
    • removeActionListener Link icon

      public void removeActionListener(ActionListener aActionListener)
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Remove aActionListener to all the buttons.
      Specified by:
      removeActionListener in interface ILcdOkCancelButtonPanel
    • getApplyButton Link icon

      public Component getApplyButton()
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Returns the Apply Component.
      Specified by:
      getApplyButton in interface ILcdOkCancelButtonPanel
      Returns:
      the Apply Button.
    • getOkButton Link icon

      public Component getOkButton()
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Returns the OK Component.
      Specified by:
      getOkButton in interface ILcdOkCancelButtonPanel
      Returns:
      the OK Button.
    • getCancelButton Link icon

      public Component getCancelButton()
      Deprecated.
      Description copied from interface: ILcdOkCancelButtonPanel
      Returns the Cancel Component.
      Specified by:
      getCancelButton in interface ILcdOkCancelButtonPanel
      Returns:
      the Cancel Button.