Table of Contents

Class JColorChooser

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class JColorChooser : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JColorChooser
Implements
Inherited Members
Extension Methods

Constructors

JColorChooser()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public JColorChooser()

JColorChooser(Color)

public JColorChooser(Color arg0)

Parameters

arg0 Color

Color

JColorChooser(ColorSelectionModel)

public JColorChooser(ColorSelectionModel arg0)

Parameters

arg0 ColorSelectionModel

ColorSelectionModel

JColorChooser(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public JColorChooser(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

CHOOSER_PANELS_PROPERTY

public static String CHOOSER_PANELS_PROPERTY { get; }

Property Value

String

ChooserPanels

public AbstractColorChooserPanel[] ChooserPanels { get; set; }

Property Value

AbstractColorChooserPanel[]

Color

public Color Color { get; }

Property Value

Color

DragEnabled

public bool DragEnabled { get; set; }

Property Value

bool

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

PREVIEW_PANEL_PROPERTY

public static String PREVIEW_PANEL_PROPERTY { get; }

Property Value

String

PreviewPanel

public JComponent PreviewPanel { get; set; }

Property Value

JComponent

SELECTION_MODEL_PROPERTY

public static String SELECTION_MODEL_PROPERTY { get; }

Property Value

String

SelectionModel

public ColorSelectionModel SelectionModel { get; set; }

Property Value

ColorSelectionModel

Methods

AddChooserPanel(AbstractColorChooserPanel)

public void AddChooserPanel(AbstractColorChooserPanel arg0)

Parameters

arg0 AbstractColorChooserPanel

AbstractColorChooserPanel

CreateDialog(Component, String, bool, JColorChooser, ActionListener, ActionListener)

public static JDialog CreateDialog(Component arg0, String arg1, bool arg2, JColorChooser arg3, ActionListener arg4, ActionListener arg5)

Parameters

arg0 Component

Component

arg1 String

String

arg2 bool

bool

arg3 JColorChooser

JColorChooser

arg4 ActionListener

ActionListener

arg5 ActionListener

ActionListener

Returns

JDialog

JDialog

Exceptions

HeadlessException

RemoveChooserPanel(AbstractColorChooserPanel)

public AbstractColorChooserPanel RemoveChooserPanel(AbstractColorChooserPanel arg0)

Parameters

arg0 AbstractColorChooserPanel

AbstractColorChooserPanel

Returns

AbstractColorChooserPanel

AbstractColorChooserPanel

SetColor(Color)

public void SetColor(Color arg0)

Parameters

arg0 Color

Color

SetColor(int)

public void SetColor(int arg0)

Parameters

arg0 int

int

SetColor(int, int, int)

public void SetColor(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

SetUI(ColorChooserUI)

public void SetUI(ColorChooserUI arg0)

Parameters

arg0 ColorChooserUI

ColorChooserUI

ShowDialog(Component, String, Color)

public static Color ShowDialog(Component arg0, String arg1, Color arg2)

Parameters

arg0 Component

Component

arg1 String

String

arg2 Color

Color

Returns

Color

Color

Exceptions

HeadlessException

ShowDialog(Component, String, Color, bool)

public static Color ShowDialog(Component arg0, String arg1, Color arg2, bool arg3)

Parameters

arg0 Component

Component

arg1 String

String

arg2 Color

Color

arg3 bool

bool

Returns

Color

Color

Exceptions

HeadlessException

Operators

implicit operator Accessible(JColorChooser)

Converter from JColorChooser to Accessible

public static implicit operator Accessible(JColorChooser t)

Parameters

t JColorChooser

Returns

Accessible