org.annotation.wordfreak.chooser
Interface Chooser

All Known Implementing Classes:
DialogChooser

public interface Chooser

Defines the interface that any wordfreak input dialog (or chooser) should implement.


Method Summary
 void addComponent(javax.swing.JComponent component)
          Adds the specified component to this chooser.
 void addComponent(javax.swing.JComponent component, boolean stretch)
          Adds the specified component to this chooser indicating whether the chooser should stretch to accomidate it.
 void addComponents(javax.swing.JComponent[] components)
          Adds the specified components to this chooser indicating whether the chooser should stretch to accomidate them.
 void addComponents(javax.swing.JComponent[] components, boolean[] stretches)
          Adds the specified components to this chooser indicating for which the chooser should stretch to accomidate them.
 void dispose()
          Destroys the chooser.
 void focusComponent(java.lang.String name)
          Assigns the component with the specified name focus.
 java.util.List getChooserComponents()
          Returns the components of this chooser.
 void resize()
          Tells the chooser to resize.
 void setFontType(java.lang.String name)
          Sets the font used by the chooser to the specified name.
 void toFront()
          Indicates that the chooser should be moved to the front.
 

Method Detail

addComponent

public void addComponent(javax.swing.JComponent component)
Adds the specified component to this chooser.

Parameters:
component - The componet to be added.

addComponent

public void addComponent(javax.swing.JComponent component,
                         boolean stretch)
Adds the specified component to this chooser indicating whether the chooser should stretch to accomidate it.

Parameters:
component - The componet to be added.
stretch - Whether the chooser should stretch to accomidate the specified component.

addComponents

public void addComponents(javax.swing.JComponent[] components)
Adds the specified components to this chooser indicating whether the chooser should stretch to accomidate them.

Parameters:
components -

addComponents

public void addComponents(javax.swing.JComponent[] components,
                          boolean[] stretches)
Adds the specified components to this chooser indicating for which the chooser should stretch to accomidate them. The stretchs are associated with their like indexed compoenents.

Parameters:
components - The componets to be added.
stretches - Whether the chooser should stretch to accomidate the specified components.

getChooserComponents

public java.util.List getChooserComponents()
Returns the components of this chooser.

Returns:
A list of the components of this chooser.

dispose

public void dispose()
Destroys the chooser.


toFront

public void toFront()
Indicates that the chooser should be moved to the front.


resize

public void resize()
Tells the chooser to resize.


setFontType

public void setFontType(java.lang.String name)
Sets the font used by the chooser to the specified name.

Parameters:
name -

focusComponent

public void focusComponent(java.lang.String name)
Assigns the component with the specified name focus.

Parameters:
name - The name of the component to be given focus.


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.