Class StyleWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class StyleWindow extends JDialog
Dialogue which houses a StyleEditor.
Since:
10 Jan 2006
Author:
Mark Taylor
See Also:
  • Constructor Details

    • StyleWindow

      public StyleWindow(Frame parent, StyleEditor editor)
      Constructor.
      Parameters:
      parent - owner frame
      editor - style editor component
  • Method Details

    • setVisible

      public void setVisible(boolean vis)
      Overrides:
      setVisible in class Dialog
    • setTarget

      public void setTarget(ActionListener target)
      Sets the target listener. This listener will be notified whenever a new style has been selected. There is only one target for this StyleWindow, so if this method is called with a different target at a later date, the earlier target will no longer be informed.
      Parameters:
      target - style change listener
    • getEditor

      public StyleEditor getEditor()
      Returns the StyleEditor component which is doing the hard work for this dialogue.
      Returns:
      editor