|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.awt.LabelVisualComponent
public abstract class LabelVisualComponent
Constructor Summary | |
---|---|
LabelVisualComponent()
|
|
LabelVisualComponent(java.lang.String text)
|
|
LabelVisualComponent(java.lang.String text,
int alignment)
|
Method Summary | |
---|---|
void |
addLink(java.lang.String property,
com.sas.ComponentInterface linked_component,
java.lang.String linked_property)
addLink() adds a link between property on this component and source_property on source_component. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the component. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a VetoableChangeListener to the component. |
boolean |
anyPropertyChangeListeners()
Return true if there are any PropertyChangeEvent listeners. |
void |
attachModel(com.sas.ModelInterface model)
Attaches the specified model to this view. |
boolean |
attachView()
attachView is called on the model during an attachModel call on the view. |
java.lang.Object |
clone()
Return a clone of the object. |
java.awt.Dimension |
computePreferredSize()
The default implementation of this method calls super.getPreferredSize(). |
void |
detachModel(com.sas.ModelInterface model)
Detaches the specified model from this view. |
void |
detachView()
detachView is called on the model during an detachModel call on the view. |
void |
dumpComponent()
This method prints debugging information about the component. |
void |
firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Report a bound property update to any registered listeners. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a bound property update to any registered listeners. |
void |
fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a constrained property update to any registered listeners. |
java.awt.Color |
getBackgroundColor()
Returns the background color of the component. |
BorderInterface |
getBorder()
Returns the border drawn around the component. |
java.lang.String |
getComponentDescription()
This method returns the description of the component. |
com.sas.ComponentInterfaceSupportInfo |
getComponentSupportInfo(boolean createIfNecessary)
Internal framework method. |
java.lang.reflect.Method |
getEventMethod(java.lang.reflect.Method listenerMethod)
Get the method used to check the value of the event. |
java.lang.String[] |
getEventValues(java.lang.reflect.Method listenerMethod)
Get the possible values for the listenerInterface method the event is sent to. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about the component. |
java.awt.Font |
getFont()
Returns the font used by the component to display text. |
java.awt.Color |
getForegroundColor()
Returns the foreground color of the component. |
int |
getHeight()
This method returns the vertical size of the component in pixels. |
int |
getHorizontalPosition()
This method returns the horizontal starting position of the component in pixels. |
com.sas.LinkPropertiesInfo |
getLinkInfo()
Internal framework method. |
java.awt.Dimension |
getMinimumSize()
Overrides the java.awt.Component getMinimumSize method to return a minimum size of 5,5 for components which do not have a peer. |
com.sas.ModelInterface |
getModelInterface()
|
java.awt.Dimension |
getPreferredSize()
|
com.sas.visuals.PainterInterface |
getPrePainter()
Returns the painter used to draw over the background of the component. |
java.util.Vector |
getRequiredInterfaces()
The get method for the requiredInterfaces attribute. |
int |
getVerticalPosition()
This method returns the vertical starting position of the component in pixels. |
com.sas.ViewInterfaceSupportInfo |
getViewInterfaceSupportInfo()
Internal framework method. |
VisualInterfaceSupportInfo |
getVisualInterfaceSupportInfo()
This method is not intended to be called by users. |
int |
getWidth()
This method returns the width of the component in pixels. |
void |
initialize()
The initialize() method was designed to be a synchronization point after the constructor for the object has completed and a number of methods have been called on the component. |
void |
initializeComponent()
Called by the default constructor. |
boolean |
isDesignTime()
This method returns whether the component is in design mode or in run mode. |
boolean |
isEnabled()
Returns whether the component is currently enabled. |
boolean |
isFocus()
isFocus returns whether the component currently has focus. |
boolean |
isLinked(java.lang.String property,
com.sas.ComponentInterface linked_component,
java.lang.String linked_property)
isLinked() determines if property on this component is linked to source_property on source_component. |
boolean |
isTransparent()
Returns whether the background is not filled with the backgroundColor. |
boolean |
isVisible()
Returns whether the component is currently visible. |
void |
paint(java.awt.Graphics g)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Handles any property links on this component from the source component. |
com.sas.PropertyLinkInfo[] |
queryLinks()
queryLinks() returns an array of PropertyLinkInfo objects containing information about properties on this component which are linked to properties on this or other components. |
com.sas.PropertyLinkInfo[] |
queryLinks(java.lang.String property)
queryLinks() returns an array of PropertyLinkInfo objects containing information about the links to the specified property. |
void |
refresh(com.sas.ModelInterface model)
Updates the view based on updates in the model. |
void |
removeAllLinks()
removeAllLinks() removes all the links on this component. |
void |
removeInterfaceTraps(com.sas.ModelInterface model)
|
void |
removeLink(java.lang.String property,
com.sas.ComponentInterface linked_component,
java.lang.String linked_property)
removeLink() removes a link between property on this component and source_property on source_component. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the component. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a VetoableChangeListener from the component. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color of the component. |
void |
setBorder(BorderInterface border)
Sets the border drawn around the component. |
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setComponentDescription(java.lang.String description)
This method sets the description of the component. |
void |
setComponentSupportInfo(com.sas.ComponentInterfaceSupportInfo info)
Internal framework method. |
void |
setDefaultValues()
This method sets the initial property values to their default values. |
void |
setEnabled(boolean enabled)
setEnabled() is the set accessor method for the Enabled attribute. |
void |
setFocus(boolean focus)
setFocus sets focus to the component or away from the component. |
void |
setFont(java.awt.Font font)
Sets the font to be used by the component for displaying text. |
void |
setForegroundColor(java.awt.Color color)
Sets the foreground color of the component. |
void |
setHeight(int height)
This method sets the height of the component in pixels. |
void |
setHorizontalPosition(int horizontalPosition)
This method sets the horizontal starting position of the component in pixels. |
void |
setLinkInfo(com.sas.LinkPropertiesInfo info)
Internal framework method. |
void |
setModelInterface(com.sas.ModelInterface model)
Calling setModelInterface will detach the previous model (if any) and will call attachModel to attach the model to this view. |
void |
setPreferredSize(java.awt.Dimension preferredSize)
This method allows the user to set the Dimension returned by getPreferredSize. |
void |
setPrePainter(com.sas.visuals.PainterInterface painter)
Sets the painter used to draw over the background of the component. |
void |
setRequiredInterfaces(java.util.Vector interfaces)
The set method for the requiredInterfaces attribute. |
void |
setTransparent(boolean transparent)
Sets whether the background of the component is filled with the backgroundColor. |
void |
setVerticalPosition(int verticalPosition)
This method sets the vertical starting position of the component in pixels. |
void |
setViewInterfaceSupportInfo(com.sas.ViewInterfaceSupportInfo info)
Internal framework method. |
void |
setVisible(boolean visible)
setVisible() is the set accessor method for the Visible attribute. |
void |
setVisualInterfaceSupportInfo(VisualInterfaceSupportInfo info)
This method is not intended to be called by users. |
void |
setWidth(int width)
This method sets the width of the component in pixels. |
java.awt.Font |
superGetFont()
This method is not intended to be used by users. |
java.awt.Dimension |
superGetMinimumSize()
This method is not intended to be used by users. |
java.awt.Dimension |
superGetPreferredSize()
This method is not intended to be used by users. |
boolean |
superIsEnabled()
This method is not intended to be used by users. |
boolean |
superIsVisible()
This method is not intended to be used by users. |
void |
superPaint(java.awt.Graphics g)
This method is not intended to be used by users. |
void |
superSetBounds(int x,
int y,
int width,
int height)
This method is not intended to be used by users. |
void |
superSetEnabled(boolean enabled)
This method is not intended to be used by users. |
void |
superSetFont(java.awt.Font font)
This method is not intended to be used by users. |
void |
superSetVisible(boolean visible)
This method is not intended to be used by users. |
void |
superUpdate(java.awt.Graphics g)
This method is not intended to be used by users. |
boolean |
supportsListenerInterface(java.lang.Class listenerInterface)
Determines if a listenerInterface class is supported by the implementing class. |
boolean |
supportsRequiredInterfaces(com.sas.ModelInterface model)
Checks a potential model to this view to see if it supports the required interfaces of this view. |
void |
trapInterfaceEvents(com.sas.ModelInterface model)
|
void |
update(java.awt.Graphics g)
|
void |
validateObject()
|
Constructor Detail |
---|
public LabelVisualComponent()
public LabelVisualComponent(java.lang.String text)
public LabelVisualComponent(java.lang.String text, int alignment)
Method Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the model attached to the component being cloned
will not allow the clone to attach.public void trapInterfaceEvents(com.sas.ModelInterface model)
trapInterfaceEvents
in interface com.sas.ViewInterface
ViewInterface.trapInterfaceEvents(com.sas.ModelInterface)
public void removeInterfaceTraps(com.sas.ModelInterface model)
removeInterfaceTraps
in interface com.sas.ViewInterface
ViewInterface.removeInterfaceTraps(com.sas.ModelInterface)
public java.util.Vector getRequiredInterfaces()
ViewInterface
getRequiredInterfaces
in interface com.sas.ViewInterface
ViewInterface.getRequiredInterfaces()
public void setRequiredInterfaces(java.util.Vector interfaces)
ViewInterface
setRequiredInterfaces
in interface com.sas.ViewInterface
interfaces
- Vector of interface information for each required interface
Each element in the vector contains the required interface name followed by attribute name
to method pairings for each attribute in the model which the view will set
up event handlers for. For example, this view requires
the StringListInterface and handles two attribute changed event
notifications from the model.
Vector requiredInterfaces = new Vector(); String[] requiredInterfacesString = { "com.sas.util.StaticStringListInterface", "items", "refresh", "listName", "setTitle" }; requiredInterfaces.addElement(requiredInterfacesString); this.setRequiredInterfaces( requiredInterfaces );
ViewInterface.setRequiredInterfaces(java.util.Vector)
public void attachModel(com.sas.ModelInterface model)
ViewInterface
attachModel
in interface com.sas.ViewInterface
model
- Model to attach toViewInterface.attachModel(com.sas.ModelInterface)
public void detachModel(com.sas.ModelInterface model)
ViewInterface
detachModel
in interface com.sas.ViewInterface
model
- Model to detachViewInterface.detachModel(com.sas.ModelInterface)
public void refresh(com.sas.ModelInterface model)
ViewInterface
refresh
in interface com.sas.ViewInterface
model
- Model that has just been updatedViewInterface.refresh(com.sas.ModelInterface)
public boolean supportsRequiredInterfaces(com.sas.ModelInterface model)
ViewInterface
supportsRequiredInterfaces
in interface com.sas.ViewInterface
model
- Model to check for the required interfaces
ViewInterface.supportsRequiredInterfaces(com.sas.ModelInterface)
public com.sas.ModelInterface getModelInterface()
getModelInterface
in interface com.sas.ViewInterface
ViewInterface.getModelInterface()
public void setModelInterface(com.sas.ModelInterface model)
ViewInterface
setModelInterface
in interface com.sas.ViewInterface
model
- The new model for this viewViewInterface.setModelInterface(com.sas.ModelInterface)
public com.sas.ViewInterfaceSupportInfo getViewInterfaceSupportInfo()
getViewInterfaceSupportInfo
in interface com.sas.ViewInterface
ViewInterface.getViewInterfaceSupportInfo()
public void setViewInterfaceSupportInfo(com.sas.ViewInterfaceSupportInfo info)
setViewInterfaceSupportInfo
in interface com.sas.ViewInterface
info
- A reference to an instance of ViewInterfaceSupportInfo which holds
information needed by ViewInterfaceSupport to implement the ViewInterface.ViewInterface.setViewInterfaceSupportInfo(com.sas.ViewInterfaceSupportInfo)
public boolean attachView()
ModelInterface
attachView
in interface com.sas.ModelInterface
ModelInterface.attachView()
public void detachView()
ModelInterface
detachView
in interface com.sas.ModelInterface
ModelInterface.detachView()
public void addLink(java.lang.String property, com.sas.ComponentInterface linked_component, java.lang.String linked_property)
LinkPropertiesInterface
Adding a link that already exists does nothing.
addLink
in interface com.sas.LinkPropertiesInterface
property
- The property to be linked to source_property on source_component.linked_component
- The component with source_property.linked_property
- The property on source_component.LinkPropertiesInterface.addLink(java.lang.String, com.sas.ComponentInterface, java.lang.String)
public void removeLink(java.lang.String property, com.sas.ComponentInterface linked_component, java.lang.String linked_property)
LinkPropertiesInterface
removeLink
in interface com.sas.LinkPropertiesInterface
property
- The property currently linked to source_property on source_component.linked_component
- The component with source_property.linked_property
- The property on source_component.LinkPropertiesInterface.removeLink(java.lang.String, com.sas.ComponentInterface, java.lang.String)
public void removeAllLinks()
LinkPropertiesInterface
removeAllLinks
in interface com.sas.LinkPropertiesInterface
LinkPropertiesInterface.removeAllLinks()
public com.sas.PropertyLinkInfo[] queryLinks(java.lang.String property)
LinkPropertiesInterface
queryLinks
in interface com.sas.LinkPropertiesInterface
property
- The property to return the list of links for.
LinkPropertiesInterface.queryLinks(java.lang.String)
public com.sas.PropertyLinkInfo[] queryLinks()
LinkPropertiesInterface
queryLinks
in interface com.sas.LinkPropertiesInterface
LinkPropertiesInterface.queryLinks(java.lang.String)
public boolean isLinked(java.lang.String property, com.sas.ComponentInterface linked_component, java.lang.String linked_property)
LinkPropertiesInterface
isLinked
in interface com.sas.LinkPropertiesInterface
property
- The property potentially linked to source_property on source_component.linked_component
- The component with source_property.linked_property
- The property on source_component.
LinkPropertiesInterface.queryLinks(java.lang.String)
public com.sas.LinkPropertiesInfo getLinkInfo()
getLinkInfo
in interface com.sas.LinkPropertiesInterface
LinkPropertiesInterfaceSupport
public void setLinkInfo(com.sas.LinkPropertiesInfo info)
setLinkInfo
in interface com.sas.LinkPropertiesInterface
LinkPropertiesInterfaceSupport
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ComponentInterface
addPropertyChangeListener
in interface com.sas.beans.PropertyChangeSource
addPropertyChangeListener
in interface com.sas.ComponentInterface
addPropertyChangeListener
in class java.awt.Component
listener
- The PropertyChangeListener to receive PropertyChangeEvents.ComponentInterface.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
ComponentInterface
removePropertyChangeListener
in interface com.sas.beans.PropertyChangeSource
removePropertyChangeListener
in interface com.sas.ComponentInterface
removePropertyChangeListener
in class java.awt.Component
listener
- The PropertyChangeListener to stop receiving PropertyChangeEvents.ComponentInterface.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
ComponentInterface
firePropertyChange
in interface com.sas.ComponentInterface
firePropertyChange
in class java.awt.Component
propertyName
- The name of the property that was changed. null may be passed in to
indicate that a generic change to the component (and not a specific property) was made.oldValue
- The old value of the property. null may be passed in to indicate that the
old value is unknown.newValue
- The new value of the property. null may be passed in to indicate that the
new value is unknown.ComponentInterface.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
ComponentInterface
firePropertyChange
in interface com.sas.ComponentInterface
propertyChangeEvent
- A previously constructed property change eventComponentInterface.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public java.lang.String getComponentDescription()
ComponentInterface
getComponentDescription
in interface com.sas.ComponentInterface
ComponentInterface.getComponentDescription()
public void setComponentDescription(java.lang.String description)
ComponentInterface
Application writers may want to set unique componentDescriptions on components so that they can be distinquished properly in a testing environment.
setComponentDescription
in interface com.sas.ComponentInterface
description
- The new description for the component.ComponentInterface.setComponentDescription(java.lang.String)
public boolean isDesignTime()
ComponentInterface
ComponentInterface.isDesignTime should be used instead of java.beans.Beans.isDesignTime since java.beans.Beans.isDesignTime is not thread safe and changes the status of all JavaBeans at the same time.
isDesignTime
in interface com.sas.ComponentInterface
ComponentInterface.isDesignTime()
public void dumpComponent()
ComponentInterface
dumpComponent
in interface com.sas.ComponentInterface
ComponentInterface.dumpComponent()
public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
ComponentInterface
addVetoableChangeListener
in interface com.sas.beans.VetoableChangeSource
addVetoableChangeListener
in interface com.sas.ComponentInterface
listener
- The VetoableChangeListener to receive PropertyChangeEvents.ComponentInterface.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
ComponentInterface
removeVetoableChangeListener
in interface com.sas.beans.VetoableChangeSource
removeVetoableChangeListener
in interface com.sas.ComponentInterface
listener
- The VetoableChangeListener to stop receiving PropertyChangeEvents.ComponentInterface.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public void fireVetoableChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) throws java.beans.PropertyVetoException
ComponentInterface
fireVetoableChange
in interface com.sas.ComponentInterface
propertyName
- The name of the property that was changed.oldValue
- The old value of the property. null may be passed in to indicate that the
new value is unknown.newValue
- The new value of the property. null may be passed in to indicate that the
new value is unknown.
java.beans.PropertyVetoException
- The listener vetoed the set of this constrained propertyComponentInterface.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)
public boolean anyPropertyChangeListeners()
anyPropertyChangeListeners
in interface com.sas.ComponentInterface
public void initialize()
ComponentInterface
initialize() should be called on a component after is it constructed :
ListBox listBox = new ListBox(); listBox.initialize(); container.add( listBox );
Overriding initialize is now discouraged since it is generally better to override setDefaultValues and readObject to perform initialization.
By default (in the ComponentInterface implementation), initialize() does nothing. However, various components override initialize() to perform operations, and it should be called.
Although use of initialize() is now discouraged, initialize() is also called by the validateObject method after a component is deserialized. This allows components which need processing during creation and deserialization to have a common place to perform operations. Adding event handlers to subcomponents is a typical use of the initialize method.
initialize
in interface com.sas.ComponentInterface
ComponentInterface.initialize()
public void initializeComponent()
ComponentInterface
initializeComponent
in interface com.sas.ComponentInterface
ComponentInterface.initializeComponent()
public void setDefaultValues()
ComponentInterface
Note that the designTime property is not initialized when setDefaultValues is called, so initialization which depends on the value of designTime should take place in initializeComponent.
setDefaultValues
in interface VisualInterface
setDefaultValues
in interface com.sas.ComponentInterface
ComponentInterface.setDefaultValues()
public void validateObject()
validateObject
in interface java.io.ObjectInputValidation
ComponentInterfaceSupport.validateObject(com.sas.ComponentInterface)
public com.sas.ComponentInterfaceSupportInfo getComponentSupportInfo(boolean createIfNecessary)
getComponentSupportInfo
in interface com.sas.ComponentInterface
createIfNecessary
- Whether to create the ComponentInterfaceSupportInfo object if
it does not already exist.
public void setComponentSupportInfo(com.sas.ComponentInterfaceSupportInfo info)
setComponentSupportInfo
in interface com.sas.ComponentInterface
info
- An instance of ComponentInterfaceSupportInfo holding the information used
by the ComponentSupport class to implement the ComponentInterface.public boolean supportsListenerInterface(java.lang.Class listenerInterface)
MultipleValueEventSourceInterface
supportsListenerInterface
in interface MultipleValueEventSourceInterface
listenerInterface
- the class of the listenerInterface of the event sent out
MultipleValueEventSourceInterfaceSupport.supportsListenerInterface(java.lang.Object, java.lang.Class)
public java.lang.reflect.Method getEventMethod(java.lang.reflect.Method listenerMethod)
MultipleValueEventSourceInterface
getEventMethod
in interface MultipleValueEventSourceInterface
listenerMethod
- the listenerInterface method the event is sent to.
MultipleValueEventSourceInterfaceSupport.getEventMethod(java.lang.Object, java.lang.reflect.Method)
public java.lang.String[] getEventValues(java.lang.reflect.Method listenerMethod)
MultipleValueEventSourceInterface
getEventValues
in interface MultipleValueEventSourceInterface
listenerMethod
- the listenerInterface method the event is sent to.
MultipleValueEventSourceInterfaceSupport.getEventValues(java.lang.Object, java.lang.reflect.Method)
public java.awt.Dimension computePreferredSize()
VisualInterface
This method should not be called directly since it is called from getPreferredSize when setPreferredSize has not been called with a non-null value.
computePreferredSize
in interface VisualInterface
VisualInterface.computePreferredSize()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface VisualInterface
getPreferredSize
in class java.awt.Component
VisualInterface.getPreferredSize()
public void setPreferredSize(java.awt.Dimension preferredSize)
VisualInterface
setPreferredSize
in interface VisualInterface
setPreferredSize
in class java.awt.Component
preferredSize
- The size to return when getPreferredSize is called on the
component.VisualInterface.setPreferredSize(java.awt.Dimension)
public com.sas.visuals.PainterInterface getPrePainter()
VisualInterface
getPrePainter
in interface VisualInterface
VisualInterface.getPrePainter()
public void setPrePainter(com.sas.visuals.PainterInterface painter)
VisualInterface
setPrePainter
in interface VisualInterface
painter
- The object to use to draw prior to calling paint() on the
component.VisualInterface.setPrePainter(com.sas.visuals.PainterInterface)
public void setBounds(int x, int y, int width, int height)
setBounds
in interface VisualInterface
setBounds
in class java.awt.Component
VisualInterface.setBounds(int, int, int, int)
public java.awt.Color getForegroundColor()
VisualInterface
If you override getForegroundColor, users which treat the component as a java.awt.Component by calling getForeground will not get your behavior changes. So, it would be advisable to override getForeground instead.
getForegroundColor
in interface VisualInterface
VisualInterface.getForegroundColor()
public void setForegroundColor(java.awt.Color color)
VisualInterface
If you override setForegroundColor, users which treat the component as a java.awt.Component by calling setForeground will not get your behavior changes. So, it would be advisable to override setForeground instead.
setForegroundColor
in interface VisualInterface
color
- The foreground color of the component.VisualInterface.setForegroundColor(java.awt.Color)
public java.awt.Color getBackgroundColor()
VisualInterface
If you override getBackgroundColor, users which treat the component as a java.awt.Component by calling getBackground will not get your behavior changes. So, it would be advisable to override getBackground instead.
getBackgroundColor
in interface VisualInterface
VisualInterface.getBackgroundColor()
public void setBackgroundColor(java.awt.Color color)
VisualInterface
If you override setBackgroundColor, users which treat the component as a java.awt.Component by calling setBackground will not get your behavior changes. So, it would be advisable to override setBackground instead.
setBackgroundColor
in interface VisualInterface
color
- The background color of the component.VisualInterface.setBackgroundColor(java.awt.Color)
public java.awt.Font getFont()
VisualInterface
getFont
in interface VisualInterface
getFont
in interface java.awt.MenuContainer
getFont
in class java.awt.Component
VisualInterface.getFont()
public void setFont(java.awt.Font font)
VisualInterface
setFont
in interface VisualInterface
setFont
in class java.awt.Component
font
- the font to be used by the component for displaying text.VisualInterface.setFont(java.awt.Font)
public int getWidth()
VisualInterface
getWidth
in interface VisualInterface
getWidth
in class java.awt.Component
VisualInterface.getWidth()
public void setWidth(int width)
VisualInterface
setWidth
in interface VisualInterface
width
- the new widthVisualInterface.setWidth(int)
public int getHeight()
VisualInterface
getHeight
in interface VisualInterface
getHeight
in class java.awt.Component
VisualInterface.getHeight()
public void setHeight(int height)
VisualInterface
setHeight
in interface VisualInterface
height
- The new heightVisualInterface.setHeight(int)
public int getHorizontalPosition()
VisualInterface
getHorizontalPosition
in interface VisualInterface
VisualInterface.getHorizontalPosition()
public void setHorizontalPosition(int horizontalPosition)
VisualInterface
setHorizontalPosition
in interface VisualInterface
horizontalPosition
- the new horizontal starting positionVisualInterface.setHorizontalPosition(int)
public int getVerticalPosition()
VisualInterface
getVerticalPosition
in interface VisualInterface
VisualInterface.getVerticalPosition()
public void setVerticalPosition(int verticalPosition)
VisualInterface
setVerticalPosition
in interface VisualInterface
verticalPosition
- the new vertical starting positionVisualInterface.setVerticalPosition(int)
public BorderInterface getBorder()
VisualInterface
getBorder
in interface VisualInterface
VisualInterface.getBorder()
public void setBorder(BorderInterface border)
VisualInterface
setBorder
in interface VisualInterface
border
- The border object.VisualInterface.setBorder(com.sas.visuals.BorderInterface)
public boolean isEnabled()
VisualInterface
isEnabled
in interface VisualInterface
isEnabled
in class java.awt.Component
VisualInterface.isEnabled()
public void setEnabled(boolean enabled)
VisualInterface
setEnabled
in interface VisualInterface
setEnabled
in class java.awt.Component
enabled
- Whether the component should be enabled.VisualInterface.setEnabled(boolean)
public boolean isTransparent()
VisualInterface
isTransparent
in interface VisualInterface
VisualInterface.isTransparent()
public void setTransparent(boolean transparent)
VisualInterface
The default implementation of the VisualInterface in VisualInterfaceSupport throws a java.lang.IllegalStateException if setTransparent(true) is called on a heavyweight component.
setTransparent
in interface VisualInterface
transparent
- whether the background of the component is filled with the backgroundColor.VisualInterface.setTransparent(boolean)
public boolean isFocus()
VisualInterface
isFocus
in interface VisualInterface
VisualInterface.isFocus()
public void setFocus(boolean focus)
VisualInterface
setFocus
in interface VisualInterface
focus
- true if the component should request focus, false if
the component should give up focus.VisualInterface.setFocus(boolean)
public boolean isVisible()
VisualInterface
isVisible
in interface VisualInterface
isVisible
in class java.awt.Component
VisualInterface.isVisible()
public void setVisible(boolean visible)
VisualInterface
setVisible
in interface VisualInterface
setVisible
in class java.awt.Component
visible
- Whether the component should be visible.VisualInterface.setVisible(boolean)
public java.awt.Dimension getMinimumSize()
VisualInterface
getMinimumSize
in interface VisualInterface
getMinimumSize
in class java.awt.Component
VisualInterface.getMinimumSize()
public VisualInterfaceSupportInfo getVisualInterfaceSupportInfo()
VisualInterface
Returns the info object which holds instance data for objects implementing the VisualInterface interface.
getVisualInterfaceSupportInfo
in interface VisualInterface
VisualInterface.getVisualInterfaceSupportInfo()
public void setVisualInterfaceSupportInfo(VisualInterfaceSupportInfo info)
VisualInterface
Sets the info object which holds instance data for objects implementing the VisualInterface interface.
setVisualInterfaceSupportInfo
in interface VisualInterface
info
- The instance of VisualInterfaceSupportInfo for the component.VisualInterface.setVisualInterfaceSupportInfo(com.sas.awt.VisualInterfaceSupportInfo)
public void update(java.awt.Graphics g)
update
in class java.awt.Component
VisualInterfaceSupport.update(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)
public void paint(java.awt.Graphics g)
paint
in class java.awt.Component
VisualInterfaceSupport.paint(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)
public final java.awt.Dimension superGetPreferredSize()
Calls the superclasses getPreferredSize() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superGetPreferredSize
in interface VisualInterface
getPreferredSize()
public final void superPaint(java.awt.Graphics g)
Calls the superclasses paint() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superPaint
in interface VisualInterface
paint(java.awt.Graphics)
public final void superUpdate(java.awt.Graphics g)
Calls the superclasses update() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superUpdate
in interface VisualInterface
update(java.awt.Graphics)
public final void superSetBounds(int x, int y, int width, int height)
Calls the superclasses setBounds() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superSetBounds
in interface VisualInterface
setBounds(int, int, int, int)
public final java.awt.Dimension superGetMinimumSize()
Calls the superclasses getMinimumSize() method and returns the result. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superGetMinimumSize
in interface VisualInterface
getMinimumSize()
public final boolean superIsVisible()
Calls the superclasses isVisible() method and returns the result. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superIsVisible
in interface VisualInterface
VisualInterface.superIsVisible()
public final void superSetVisible(boolean visible)
Calls the superclasses setVisible() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superSetVisible
in interface VisualInterface
visible
- Whether the component is visible.VisualInterface.superSetVisible(boolean)
public final boolean superIsEnabled()
Calls the superclasses isEnabled() method and returns the result. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superIsEnabled
in interface VisualInterface
VisualInterface.superIsEnabled()
public void superSetEnabled(boolean enabled)
Calls the superclasses setEnabled() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superSetEnabled
in interface VisualInterface
VisualInterface.superSetEnabled(boolean)
public final java.awt.Font superGetFont()
Calls the superclasses getFont() method and returns the result. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superGetFont
in interface VisualInterface
VisualInterface.superGetFont()
public void superSetFont(java.awt.Font font)
Calls the superclasses setFont() method. This is used to avoid an infinite recursive loop in VisualInterfaceSupport.
superSetFont
in interface VisualInterface
VisualInterface.superSetEnabled(boolean)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |