Class StyleContext.NamedStyle
public class StyleContext.NamedStyle : JVMBridgeBase<StyleContext.NamedStyle>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
StyleContext.NamedStyle
- Implements
- Inherited Members
- Extension Methods
Constructors
NamedStyle()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public NamedStyle()
NamedStyle(StyleContext)
public NamedStyle(StyleContext arg0)
Parameters
arg0
StyleContext
NamedStyle(StyleContext, String, Style)
public NamedStyle(StyleContext arg0, String arg1, Style arg2)
Parameters
arg0
StyleContextarg1
Stringarg2
Style
NamedStyle(StyleContext, Style)
public NamedStyle(StyleContext arg0, Style arg1)
Parameters
arg0
StyleContextarg1
Style
NamedStyle(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 NamedStyle(params object[] args)
Parameters
args
object[]
Properties
AttributeCount
public int AttributeCount { get; }
Property Value
AttributeNames
public Enumeration<object> AttributeNames { get; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
ChangeListeners
public ChangeListener[] ChangeListeners { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Name
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/StyleContext.NamedStyle.html#getName() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/StyleContext.NamedStyle.html#setName(java.lang.String)
public String Name { get; set; }
Property Value
ResolveParent
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/StyleContext.NamedStyle.html#getResolveParent() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/StyleContext.NamedStyle.html#setResolveParent(javax.swing.text.AttributeSet)
public AttributeSet ResolveParent { get; set; }
Property Value
Methods
AddAttribute(object, object)
public void AddAttribute(object arg0, object arg1)
Parameters
AddAttributes(AttributeSet)
public void AddAttributes(AttributeSet arg0)
Parameters
arg0
AttributeSet
AddChangeListener(ChangeListener)
public void AddChangeListener(ChangeListener arg0)
Parameters
ContainsAttribute(object, object)
public bool ContainsAttribute(object arg0, object arg1)
Parameters
Returns
ContainsAttributes(AttributeSet)
public bool ContainsAttributes(AttributeSet arg0)
Parameters
arg0
AttributeSet
Returns
CopyAttributes()
public AttributeSet CopyAttributes()
Returns
GetAttribute(object)
public object GetAttribute(object arg0)
Parameters
Returns
GetListeners<T>(Class)
public T[] GetListeners<T>(Class arg0) where T : IEventListener, new()
Parameters
Returns
- T[]
T
Type Parameters
IsDefined(object)
public bool IsDefined(object arg0)
Parameters
Returns
IsEqual(AttributeSet)
public bool IsEqual(AttributeSet arg0)
Parameters
arg0
AttributeSet
Returns
RemoveAttribute(object)
public void RemoveAttribute(object arg0)
Parameters
RemoveAttributes(Enumeration<object>)
public void RemoveAttributes(Enumeration<object> arg0)
Parameters
arg0
Enumeration<object>
RemoveAttributes(AttributeSet)
public void RemoveAttributes(AttributeSet arg0)
Parameters
arg0
AttributeSet
RemoveChangeListener(ChangeListener)
public void RemoveChangeListener(ChangeListener arg0)
Parameters
Operators
implicit operator Serializable(NamedStyle)
Converter from StyleContext.NamedStyle to Serializable
public static implicit operator Serializable(StyleContext.NamedStyle t)
Parameters
Returns
implicit operator Style(NamedStyle)
Converter from StyleContext.NamedStyle to Style
public static implicit operator Style(StyleContext.NamedStyle t)