Class fvaswing.components.FvColorChooser

Implemented Interfaces

FvUIBuffer

Description

Color chooser component dialog.

Method Index

close(), connect(), disconnect(), getCancelButton(), getInstance(), getOkButton(), getPickerButton(), getUI(), getUIClassID(), open(), preload(), updateUI()

Method Detail

getInstance

static public function getInstance():FvColorChooser

Returns FvColorChooser instance.

Always returns the same instance.
Design Pattern Singleton.

Return

FvColorChooser instance

getPickerButton

public function getPickerButton():JButton

Returns the picker button instance.

open

public function open():Void

Opens dialog.

close

public function close():Void

Force close.

connect

public function connect(accessor:IAccessor, listenAdjustement:Boolean):Void

Connects Pixlib Accessor to selector.

When chooser is closed, result is automatically sent to accessor instance.

Example

   var input : JTextField = new JTextField( "", 15 );
   chooser.connect( AccessorFactory.getInstance( input, input.setText, input.getText ) );
   chooser.open();
 

Parameters

accessorIAccessor instance ( take a look at Pixlib bourre.core package )
listenAdjustementIndicates if result is passed only when color change ( default behaviour == false or undefined, or if accessor listen the color change and adjustement too true

disconnect

public function disconnect():Void

Releases accessor connection.

getUI

public function getUI():FvColorChooserUI

updateUI

public function updateUI():Void

Resets the UI property to a value from the current look and feel.

getUIClassID

public function getUIClassID():String

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.

getOkButton

public function getOkButton():FvButton

Returns the ok button to finish the choosing.

getCancelButton

public function getCancelButton():FvButton

Returns the cancel button which use to cancel the choosing.

preload

public function preload():Void

Insert component into buffer

Specified By

preload() in fvaswing.components.FvUIBuffer