Packageorg.aswing
Interfacepublic interface FrameTitleBar
ImplementorsJFrameTitleBar



Public Methods
 MethodDefined by
  
addExtraControl(c:Component, position:int):void
Adds extra control to title bar
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
Returns the component(must be FrameTitleBar instance self, that means the implamentation must extends Component and getPane() return itself) that represents the title bar.
FrameTitleBar
  
getText():String
FrameTitleBar
  
isTitleEnabled():Boolean
Returns is title enabled.
FrameTitleBar
  
Returns the extra control already added.
FrameTitleBar
  
FrameTitleBar
  
setFrame(frame:JWindow):void
Sets the owner of this title bar.
FrameTitleBar
  
setIcon(i:Icon):void
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
FrameTitleBar
  
setText(t:String):void
FrameTitleBar
  
setTitleEnabled(b:Boolean):void
Sets the enabled property, if enabled, the title should have ability to iconified, maximize, restore, close, move frame.
FrameTitleBar
  
This method will be call when owner ui changed.
FrameTitleBar
Method detail
addExtraControl()method
public function addExtraControl(c:Component, position:int):void

Adds extra control to title bar

Parameters
c:Component — the control
 
position:int — left or right behind the title buttons. AsWingConstants.LEFT or AsWingConstants.RIGHT
getCloseButton()method 
public function getCloseButton():AbstractButton

Returns
AbstractButton
getFrame()method 
public function getFrame():JWindow

Returns
JWindow
getIcon()method 
public function getIcon():Icon

Returns
Icon
getIconifiedButton()method 
public function getIconifiedButton():AbstractButton

Returns
AbstractButton
getLabel()method 
public function getLabel():JLabel

Returns
JLabel
getMaximizeButton()method 
public function getMaximizeButton():AbstractButton

Returns
AbstractButton
getRestoreButton()method 
public function getRestoreButton():AbstractButton

Returns
AbstractButton
getSelf()method 
public function getSelf():Component

Returns the component(must be FrameTitleBar instance self, that means the implamentation must extends Component and getPane() return itself) that represents the title bar.

Returns
Component
getText()method 
public function getText():String

Returns
String
isTitleEnabled()method 
public function isTitleEnabled():Boolean

Returns is title enabled.

Returns
Boolean

See also

removeExtraControl()method 
public function removeExtraControl(c:Component):Component

Returns the extra control already added.

Parameters
c:Component

Returns
Component
setCloseButton()method 
public function setCloseButton(b:AbstractButton):voidParameters
b:AbstractButton
setFrame()method 
public function setFrame(frame:JWindow):void

Sets the owner of this title bar. null to uninstall from current frame. You can set a JFrame or a JWindow, if it is JWindow, some function will be lost.

Parameters
frame:JWindow
setIcon()method 
public function setIcon(i:Icon):voidParameters
i:Icon
setIconifiedButton()method 
public function setIconifiedButton(b:AbstractButton):voidParameters
b:AbstractButton
setMaximizeButton()method 
public function setMaximizeButton(b:AbstractButton):voidParameters
b:AbstractButton
setRestoreButton()method 
public function setRestoreButton(b:AbstractButton):voidParameters
b:AbstractButton
setText()method 
public function setText(t:String):voidParameters
t:String
setTitleEnabled()method 
public function setTitleEnabled(b:Boolean):void

Sets the enabled property, if enabled, the title should have ability to iconified, maximize, restore, close, move frame. If not enabled, that abilities should be disabled.

Parameters
b:Boolean
updateUIPropertiesFromOwner()method 
public function updateUIPropertiesFromOwner():void

This method will be call when owner ui changed.