Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nextapp.echo
Class Panel  view Panel download Panel.java

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

public class Panel
extends Component

A rectangular container.


Field Summary
static Insets DEFAULT_INSETS
          A default insets object used for panels, that has zero-pixel margins.
static java.lang.String HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
           
private  int horizontalAlignment
           
private  Insets insets
           
static java.lang.String INSETS_CHANGED_PROPERTY
           
static java.lang.String STYLE_HORIZONTAL_ALIGNMENT
          A style constant for the Horizontal Alignment property.
static java.lang.String STYLE_INSETS
          A style constant for the Insets property.
static java.lang.String STYLE_VERTICAL_ALIGNMENT
          A style constant for the Vertical Alignment property.
static java.lang.String VERTICAL_ALIGNMENT_CHANGED_PROPERTY
           
private  int verticalAlignment
           
 
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
Panel()
          Creates a new Panel.
 
Method Summary
 void applyStyle(Style style)
          Sets stylistic properties of this component based on a Style object.
 int getHorizontalAlignment()
          Returns the horizontal alignment of the contents of this panel.
 Insets getInsets()
          Returns the insets (margins) of the panel.
 int getVerticalAlignment()
          Returns the vertical alignment of the contents of this panel.
 void setHorizontalAlignment(int newValue)
          Sets the horizontal alignment of the contents of this panel.
 void setInsets(Insets newValue)
          Sets the insets (margins) of the pane.
 void setVerticalAlignment(int newValue)
          Sets the vertical alignment of the contents of this panel.
 
Methods inherited from class nextapp.echo.Component
add, add, addHierarchyListener, addPropertyChangeListener, 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

STYLE_HORIZONTAL_ALIGNMENT

public static final java.lang.String STYLE_HORIZONTAL_ALIGNMENT
A style constant for the Horizontal Alignment property. Values of this key must be of type java.lang.Integer.

See Also:
Constant Field Values

STYLE_INSETS

public static final java.lang.String STYLE_INSETS
A style constant for the Insets property. Values of this key must be of type nextapp.echo.Insets.

See Also:
Constant Field Values

STYLE_VERTICAL_ALIGNMENT

public static final java.lang.String STYLE_VERTICAL_ALIGNMENT
A style constant for the Vertical Alignment property. Values of this key must be of type java.lang.Integer.

See Also:
Constant Field Values

HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY

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

INSETS_CHANGED_PROPERTY

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

VERTICAL_ALIGNMENT_CHANGED_PROPERTY

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

DEFAULT_INSETS

public static final Insets DEFAULT_INSETS
A default insets object used for panels, that has zero-pixel margins.


horizontalAlignment

private int horizontalAlignment

verticalAlignment

private int verticalAlignment

insets

private Insets insets
Constructor Detail

Panel

public Panel()
Creates a new Panel.

Method Detail

applyStyle

public void applyStyle(Style style)
Description copied from class: Component
Sets stylistic properties of this component based on a Style object. The version of this method in Component will set foreground and background colors and the font from the style if they are present. Components should override this method if they allow more properties to be set from a style object, and should call super.applyStyle() if necessary.

Overrides:
applyStyle in class Component

getHorizontalAlignment

public int getHorizontalAlignment()
Returns the horizontal alignment of the contents of this panel.


getInsets

public Insets getInsets()
Returns the insets (margins) of the panel.


getVerticalAlignment

public int getVerticalAlignment()
Returns the vertical alignment of the contents of this panel.


setHorizontalAlignment

public void setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the contents of this panel.


setInsets

public void setInsets(Insets newValue)
Sets the insets (margins) of the pane.


setVerticalAlignment

public void setVerticalAlignment(int newValue)
Sets the vertical alignment of the contents of this panel.