Class ExtendedPanel

All Implemented Interfaces:
FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
AbstractTree, HyperlinkEditorPanel, SelectTransformationDetailsPanel

@OpenApi public class ExtendedPanel extends JPanel implements FocusListener
An extended swing panel which can provide default focusable element.
See Also:
  • Field Details

  • Constructor Details

    • ExtendedPanel

      public ExtendedPanel()
    • ExtendedPanel

      public ExtendedPanel(LayoutManager manager)
  • Method Details

    • initialize

      public void initialize()
    • addKeyListenerFor

      public static void addKeyListenerFor(KeyListener keyListener, Component component)
      Adds key listener recursively to all components
    • addFocusListenerFor

      public static void addFocusListenerFor(FocusListener focusListener, Component component)
      Adds focus listener recursively to all components
    • removeFocusListenerFor

      public static void removeFocusListenerFor(FocusListener focusListener, Component component)
      Removed focus listener recursively from all components
    • removeKeyListenerFor

      public static void removeKeyListenerFor(KeyListener keyListener, Component component)
      Removes key listener recursively from all components
    • addActionListenerFor

      public static void addActionListenerFor(ActionListener actionListener, Component component)
      Adds action listener recursively to all components
    • getDefaultFocusable

      @CheckForNull public Component getDefaultFocusable()
      Request Focus for some component. Here it is empty.
    • addEnterOKListener

      public void addEnterOKListener(KeyListener kl)
      Adds listener for some component. Here it is empty.
    • focusGained

      public void focusGained(FocusEvent e)
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent e)
      Specified by:
      focusLost in interface FocusListener
    • isDataValid

      public boolean isDataValid()
      Returns true if all data in the panel is correct and ok call is legal. Otherwise returns error string
    • getErrorString

      @CheckForNull protected String getErrorString()
      returns error string if something wrong
    • getParentWindow

      @CheckForNull public Window getParentWindow()
      gets parent of this panel which type is Dialog
    • setEnabledAll

      public void setEnabledAll(boolean value)
    • setEnabled

      public static void setEnabled(boolean value, Component comp)
    • updatePanelByEditingState

      public void updatePanelByEditingState(boolean state)
      For READ_ONLY dialog opening.
      Parameters:
      state - state
    • setEditingState

      public void setEditingState(boolean state)
    • updatePanelByEditingState

      public void updatePanelByEditingState()
      Updates panel by last known state.
    • updateByStateRecursively

      public void updateByStateRecursively(boolean state, Component comp)
    • enableComponent

      protected void enableComponent(boolean enable, Component comp)
    • getEditingState

      public boolean getEditingState()
      Returns state of panel.
    • ok

      public void ok()
    • cancel

      public void cancel()
    • clear

      public void clear()
      Clears all field in this panel.