interface org.aswing.FrameTitleBar

Instance Fields

function addExtraControl(c:Component, position:Int): Void

Adds extra control to title bar

c

the control

position

left or right behind the title buttons. AsWingConstants.LEFT or AsWingConstants.RIGHT

function getFrame(): JWindow

function getIcon(): Icon

function getLabel(): JLabel

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.

function getText(): String

function isActive(): Bool

Returns whether or not the frame is active

function isTitleEnabled(): Bool

Returns is title enabled. @see #setTitleEnabled()

function removeExtraControl(c:Component): Component

Returns the extra control already added.

returns

the removed control, null will be returned if the control is not in title bar.

function setButtonIconGap(gap:Int): Void

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.

function setIcon(i:Icon): Void

function setText(t:String): Void

function setTitleEnabled(b:Bool): 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.