NextApp Echo
1.1.4

nextapp.echo
Class Filler

java.lang.Object
  extended bynextapp.echo.Component
      extended bynextapp.echo.Filler
All Implemented Interfaces:
java.io.Serializable

public class Filler
extends Component

A component used to add space between other components.

See Also:
Serialized Form

Field Summary
private  int height
           
static java.lang.String HEIGHT_CHANGED_PROPERTY
           
static int NO_DIMENSION
          A value used in the width and height attributes used by Filler objects that do not wish to separate components in a particular dimension.
private  int width
           
static java.lang.String WIDTH_CHANGED_PROPERTY
           
 
Fields inherited from class nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, locale, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, TAB_INDEX_CHANGED_PROPERTY, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
Filler()
          Creates a new filler component of zero dimension.
Filler(int width, int height)
          Creates a new filler component of the given width and height.
 
Method Summary
static Filler createHorizontalStrut(int width)
          Returns a new horizontal strut filler component of the given width.
static Filler createVerticalStrut(int height)
          Returns a new vertical strut filler component of the given height.
 int getHeight()
          Returns the height of the filler.
 int getWidth()
          Returns the width of the filler.
 void setHeight(int newValue)
          Sets the height of the filler.
 void setWidth(int newValue)
          Sets the width of the filler.
 
Methods inherited from class nextapp.echo.Component
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, getTabIndex, indexOf, init, isAncestorOf, isEnabled, isFocused, isRegistered, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFocused, setFont, setForeground, setIdentifier, setLocale, setRegistered, setTabIndex, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_DIMENSION

public static final int NO_DIMENSION
A value used in the width and height attributes used by Filler objects that do not wish to separate components in a particular dimension.

See Also:
Constant Field Values

HEIGHT_CHANGED_PROPERTY

public static final java.lang.String HEIGHT_CHANGED_PROPERTY
See Also:
Constant Field Values

WIDTH_CHANGED_PROPERTY

public static final java.lang.String WIDTH_CHANGED_PROPERTY
See Also:
Constant Field Values

width

private int width

height

private int height
Constructor Detail

Filler

public Filler()
Creates a new filler component of zero dimension.


Filler

public Filler(int width,
              int height)
Creates a new filler component of the given width and height.

Parameters:
width - The width of the filler strut, in pixels.
height - The height of the filler strut in pixels.
Method Detail

createHorizontalStrut

public static Filler createHorizontalStrut(int width)
Returns a new horizontal strut filler component of the given width.

Parameters:
width - The width of the filler strut, in pixels.

createVerticalStrut

public static Filler createVerticalStrut(int height)
Returns a new vertical strut filler component of the given height.

Parameters:
height - The height of the filler strut in pixels.

getHeight

public int getHeight()
Returns the height of the filler.

Returns:
The height of the filler.

getWidth

public int getWidth()
Returns the width of the filler.

Returns:
The width of the filler.

setHeight

public void setHeight(int newValue)
Sets the height of the filler.

Parameters:
newValue - The new height of the filler.

setWidth

public void setWidth(int newValue)
Sets the width of the filler.

Parameters:
newValue - The new width of the filler.

NextApp Echo
1.1.4