Extension SDK

oracle.ide.controls
Class StatusBarControl

java.lang.Object
  extended byoracle.ide.controls.StatusBarControl
All Implemented Interfaces:
StatusBar

public final class StatusBarControl
extends java.lang.Object
implements StatusBar

The StatusBar class is a simple status text area control.


Constructor Summary
StatusBarControl()
          Create a status bar with a single text panel.
 
Method Summary
 void add(javax.swing.JComponent label)
          Adds a JComponent to the StatusBar.
 void add(javax.swing.JComponent label, int index)
          Adds a JComponent to the StatusBar.
 void dispose()
           
 javax.swing.JComponent getGUI()
          Gets the Component
 java.lang.String getText()
          Gets the text of the StatusBar
 Toolbar getToolbar()
          Return the status bar toolbar.
 boolean isExpandable(javax.swing.JComponent comp)
          Return true if the JComponent in the StatusBar should expand to fill extra space beyond its minimum.
 void remove(javax.swing.JComponent comp)
          Remove component from status bar.
 void setExpandable(javax.swing.JComponent comp, boolean expandable)
          Specify whether or not a JComponent in the StatusBar should expand to fill extra space beyond its minimum.
 void setText(java.lang.String text)
          Sets the text of the StatusBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusBarControl

public StatusBarControl()
Create a status bar with a single text panel.

Method Detail

getGUI

public javax.swing.JComponent getGUI()
Description copied from interface: StatusBar
Gets the Component

Specified by:
getGUI in interface StatusBar

setText

public void setText(java.lang.String text)
Description copied from interface: StatusBar
Sets the text of the StatusBar

Specified by:
setText in interface StatusBar
Parameters:
text - The Text to set

getText

public java.lang.String getText()
Description copied from interface: StatusBar
Gets the text of the StatusBar

Specified by:
getText in interface StatusBar
Returns:
The text

add

public void add(javax.swing.JComponent label)
Description copied from interface: StatusBar
Adds a JComponent to the StatusBar.

Specified by:
add in interface StatusBar
Parameters:
label - the new JComponent to be added.

add

public void add(javax.swing.JComponent label,
                int index)
Description copied from interface: StatusBar
Adds a JComponent to the StatusBar.

Specified by:
add in interface StatusBar
Parameters:
label - the new JLabel to be added
index - the index at which the new label will be added

remove

public void remove(javax.swing.JComponent comp)
Description copied from interface: StatusBar
Remove component from status bar.

Specified by:
remove in interface StatusBar

setExpandable

public void setExpandable(javax.swing.JComponent comp,
                          boolean expandable)
Description copied from interface: StatusBar
Specify whether or not a JComponent in the StatusBar should expand to fill extra space beyond its minimum.

Specified by:
setExpandable in interface StatusBar
See Also:
StatusBar.isExpandable(javax.swing.JComponent)

isExpandable

public boolean isExpandable(javax.swing.JComponent comp)
Description copied from interface: StatusBar
Return true if the JComponent in the StatusBar should expand to fill extra space beyond its minimum.

Specified by:
isExpandable in interface StatusBar
See Also:
StatusBar.setExpandable(javax.swing.JComponent, boolean)

getToolbar

public Toolbar getToolbar()
Description copied from interface: StatusBar
Return the status bar toolbar. Initially, this toolbar is empty. Client should add their tools to the toolbar.

Specified by:
getToolbar in interface StatusBar

dispose

public void dispose()

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.