StatusBarPanel Class

StatusBarPanel Class

This Package | All Packages

Object
  |
  +--StatusBarPanel
public class StatusBarPanel
extends Object
implements IConstructable

Stores the panel information.

Constructors
Name Description
StatusBarPanel() Topic under construction.
StatusBarPanel( String text, Icon icon, int borderStyle, int alignment, int width, int minWidth, int autoSize, Object tag, int style, String toolTipText) Topic under construction.

Methods
Name Description
getAlignment() Retrieves the Alignment property.
getAutoSize() Retrieves the AutoSize property.
getBorderStyle() Retrieves the BorderStyle property.
getConstructorArgs() Topic under construction.
getIcon() Retrieves the Icon property.
getMinWidth() Retrieves the MinWidth property.
getOnDrawItem() Retrieves the OnDraw event handler.
getStyle() Retrieves the style of the panel.
getTag() Retrieves the tag data.
getText() Retrieves the text of the panel.
getToolTipText() Retrieves the ToolTipText property.
getWidth() Retrieves the Width property.
onDrawItem(DrawItemEvent e) The Draw event.
setAlignment(int align) Sets the Alignment property.
setAutoSize(int autoSize) Sets the AutoSize property.
setBorderStyle(int border) Sets the BorderStyle property.
setIcon(Icon icon) Sets the Icon propety.
setMinWidth(int width) Sets the MinWidth property.
setOnDrawItem(DrawItemEventHandler handler) Sets the OnDraw event handler.
setStyle(int style) Sets the Style property.
setTag(Object obj) Sets the tag data.
setText(String text) Sets the Text property.
setToolTipText(String text) Sets the ToolTipText property.
setWidth(int width) Sets the Width property.

Constructors

StatusBarPanel.StatusBarPanel

Syntax 1
public StatusBarPanel();
Description

Topic under construction.



Syntax 2
public StatusBarPanel( String text, Icon icon, int borderStyle, int alignment, int width, int minWidth, int autoSize, Object tag, int style, String toolTipText );
Description

Topic under construction.

Methods

StatusBarPanel.getAlignment

Syntax
public int getAlignment();
Return Value

Returns the value of the Alignment property.

Description

Retrieves the Alignment property. (see SetAlignment)

StatusBarPanel.getAutoSize

Syntax
public int getAutoSize();
Return Value

Returns the value of the AutoSize property.

Description

Retrieves the AutoSize property.

StatusBarPanel.getBorderStyle

Syntax
public int getBorderStyle();
Return Value

Returns the value of the BorderStyle property.

Description

Retrieves the BorderStyle property. A panel can have a raised or sunken border or no border style.

StatusBarPanel.getConstructorArgs

Syntax
public ConstructorArg[] getConstructorArgs();
Description

Topic under construction.

StatusBarPanel.getIcon

Syntax
public Icon getIcon();
Return Value

Returns the icon displayed in the panel.

Description

Retrieves the Icon property.

StatusBarPanel.getMinWidth

Syntax
public int getMinWidth();
Return Value

Returns an integer representing the minimum width of the panel.

Description

Retrieves the MinWidth property.

StatusBarPanel.getOnDrawItem

Syntax
public DrawItemEventHandler getOnDrawItem();
Return Value

Returns the event handler.

Description

Retrieves the OnDraw event handler.

StatusBarPanel.getStyle

Syntax
public int getStyle();
Return Value

Returns the style.

Description

Retrieves the style of the panel. Possible values include TEXT or OWNERDRAW.

StatusBarPanel.getTag

Syntax
public Object getTag();
Return Value

Returns s a user-specified object.

Description

Retrieves the tag data.

StatusBarPanel.getText

Syntax
public String getText();
Return Value

Returns a string containing the panel text.

Description

Retrieves the text of the panel.

StatusBarPanel.getToolTipText

Syntax
public String getToolTipText();
Return Value

Returns a string with the tooltip text.

Description

Retrieves the ToolTipText property.

StatusBarPanel.getWidth

Syntax
public int getWidth();
Return Value

Returns an integer representing the width of the panel.

Description

Retrieves the Width property.

StatusBarPanel.onDrawItem

Syntax
protected void onDrawItem( DrawItemEvent e );
Parameters
e
The event data.
Description

The Draw event.

StatusBarPanel.setAlignment

Syntax
public void setAlignment( int align );
Parameters
align
The new value of the Alignment property.
Description

Sets the Alignment property. A Panel can have LEFT, RIGHT, or CENTER text alignment.

StatusBarPanel.setAutoSize

Syntax
public void setAutoSize( int autoSize );
Parameters
autoSize
The new AutoSize value.
Description

Sets the AutoSize property.

StatusBarPanel.setBorderStyle

Syntax
public void setBorderStyle( int border );
Parameters
border
The new style to use.
Description

Sets the BorderStyle property.

StatusBarPanel.setIcon

Syntax
public void setIcon( Icon icon );
Parameters
icon
The new icon to display in the panel.
Description

Sets the Icon propety.

StatusBarPanel.setMinWidth

Syntax
public void setMinWidth( int width );
Parameters
width
The new minimum width.
Description

Sets the MinWidth property.

StatusBarPanel.setOnDrawItem

Syntax
public void setOnDrawItem( DrawItemEventHandler handler );
Parameters
handler
The new event handler.
Description

Sets the OnDraw event handler.

StatusBarPanel.setStyle

Syntax
public void setStyle( int style );
Parameters
style
The new style.
Description

Sets the Style property. Possible values include TEXT or OWNERDRAW.

StatusBarPanel.setTag

Syntax
public void setTag( Object obj );
Parameters
obj
A user-specified object.
Description

Sets the tag data.

StatusBarPanel.setText

Syntax
public void setText( String text );
Parameters
text
The new text value.
Description

Sets the Text property.

StatusBarPanel.setToolTipText

Syntax
public void setToolTipText( String text );
Parameters
text
The new text value.
Description

Sets the ToolTipText property.

StatusBarPanel.setWidth

Syntax
public void setWidth( int width );
Parameters
width
The new width.
Description

Sets the Width property.