Class org.aswing.JSeparator

Description

JSeparator provides a general purpose component for implementing divider lines - most commonly used as a divider between menu items that breaks them up into logical groupings. Instead of using JSeparator directly, you can use the JMenu or JPopupMenu addSeparator method to create and add a separator. JSeparators may also be used elsewhere in a GUI wherever a visual divider is useful.

Field Index

HORIZONTAL, VERTICAL

Inherited from Component

Inherited from EventDispatcher

Method Index

new JSeparator()
getOrientation(), getUI(), getUIClassID(), setOrientation(), setUI(), updateUI()

Inherited from Component

Inherited from EventDispatcher

Constructor Detail

JSeparator

public function JSeparator(orientation:Number)

JSeparator(orientation:Number)
JSeparator() default orientation to HORIZONTAL;

Parameters

orientation(optional) the orientation.

Field Detail

HORIZONTAL

static public HORIZONTAL:Number
Horizontal orientation.

VERTICAL

static public VERTICAL:Number
Vertical orientation.

Method Detail

getUI

public function getUI():SeparatorUI

setUI

public function setUI(ui:SeparatorUI):Void

Description copied from Component

Sets the look and feel delegate for this component. Component subclasses generally override this method to narrow the argument type. For example, in JSlider:

 public void setUI(SliderUI newUI) {
     super.setUI(newUI);
 }
  

Additionally Component subclasses must provide a getUI method that returns the correct type. For example:

 public SliderUI getUI() {
     return (SliderUI)ui;
 }
 

Overrides

setUI() in org.aswing.Component

updateUI

public function updateUI():Void

Description copied from Component

Resets the UI property to a value from the current look and feel. Component subclasses must override this method like this:

   public void updateUI() {
      setUI((SliderUI)UIManager.getUI(this);
   }
  

Overrides

updateUI() in org.aswing.Component

getUIClassID

public function getUIClassID():String

Description copied from Component

Returns the UIDefaults key used to look up the name of the org.aswing.plaf.ComponentUI class that defines the look and feel for this component. Most applications will never need to call this method. Subclasses of Component that support pluggable look and feel should override this method to return a UIDefaults key that maps to the ComponentUI subclass that defines their look and feel.

Overrides

getUIClassID() in org.aswing.Component

getOrientation

public function getOrientation():Number

setOrientation

public function setOrientation(orientation:Number):Void