Table of Contents

Class DefaultButtonModel

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class DefaultButtonModel : JVMBridgeBase<DefaultButtonModel>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
DefaultButtonModel
Implements
Derived
Inherited Members
Extension Methods

Constructors

DefaultButtonModel()

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

public DefaultButtonModel()

DefaultButtonModel(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 DefaultButtonModel(params object[] args)

Parameters

args object[]

Properties

ARMED

public static int ARMED { get; }

Property Value

int

ActionCommand

public String ActionCommand { get; set; }

Property Value

String

ActionListeners

public ActionListener[] ActionListeners { get; }

Property Value

ActionListener[]

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

ChangeListeners

public ChangeListener[] ChangeListeners { get; }

Property Value

ChangeListener[]

ENABLED

public static int ENABLED { get; }

Property Value

int

Group

public ButtonGroup Group { get; set; }

Property Value

ButtonGroup

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

ItemListeners

public ItemListener[] ItemListeners { get; }

Property Value

ItemListener[]

Mnemonic

public int Mnemonic { get; set; }

Property Value

int

PRESSED

public static int PRESSED { get; }

Property Value

int

ROLLOVER

public static int ROLLOVER { get; }

Property Value

int

SELECTED

public static int SELECTED { get; }

Property Value

int

SelectedObjects

public object[] SelectedObjects { get; }

Property Value

object[]

Methods

AddActionListener(ActionListener)

public void AddActionListener(ActionListener arg0)

Parameters

arg0 ActionListener

ActionListener

AddChangeListener(ChangeListener)

public void AddChangeListener(ChangeListener arg0)

Parameters

arg0 ChangeListener

ChangeListener

AddItemListener(ItemListener)

public void AddItemListener(ItemListener arg0)

Parameters

arg0 ItemListener

ItemListener

GetListeners<T>(Class)

public T[] GetListeners<T>(Class arg0) where T : IEventListener, new()

Parameters

arg0 Class

Class

Returns

T[]

T

Type Parameters

T

IEventListener

IsArmed()

public bool IsArmed()

Returns

bool

bool

IsEnabled()

public bool IsEnabled()

Returns

bool

bool

IsPressed()

public bool IsPressed()

Returns

bool

bool

IsRollover()

public bool IsRollover()

Returns

bool

bool

IsSelected()

public bool IsSelected()

Returns

bool

bool

RemoveActionListener(ActionListener)

public void RemoveActionListener(ActionListener arg0)

Parameters

arg0 ActionListener

ActionListener

RemoveChangeListener(ChangeListener)

public void RemoveChangeListener(ChangeListener arg0)

Parameters

arg0 ChangeListener

ChangeListener

RemoveItemListener(ItemListener)

public void RemoveItemListener(ItemListener arg0)

Parameters

arg0 ItemListener

ItemListener

SetArmed(bool)

public void SetArmed(bool arg0)

Parameters

arg0 bool

bool

SetEnabled(bool)

public void SetEnabled(bool arg0)

Parameters

arg0 bool

bool

SetPressed(bool)

public void SetPressed(bool arg0)

Parameters

arg0 bool

bool

SetRollover(bool)

public void SetRollover(bool arg0)

Parameters

arg0 bool

bool

SetSelected(bool)

public void SetSelected(bool arg0)

Parameters

arg0 bool

bool

Operators

implicit operator Serializable(DefaultButtonModel)

Converter from DefaultButtonModel to Serializable

public static implicit operator Serializable(DefaultButtonModel t)

Parameters

t DefaultButtonModel

Returns

Serializable

implicit operator ButtonModel(DefaultButtonModel)

Converter from DefaultButtonModel to ButtonModel

public static implicit operator ButtonModel(DefaultButtonModel t)

Parameters

t DefaultButtonModel

Returns

ButtonModel