public class Component extends Object implements Animation, StyleListener
Display
).Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM
Box-orientation constant used to specify the bottom of a box.
|
static int |
BRB_CENTER_OFFSET
Baseline resize behavior constant used to properly align components.
|
static int |
BRB_CONSTANT_ASCENT
Baseline resize behavior constant used to properly align components.
|
static int |
BRB_CONSTANT_DESCENT
Baseline resize behavior constant used to properly align components.
|
static int |
BRB_OTHER
Baseline resize behavior constant used to properly align components.
|
static int |
CENTER
Indicates a Component center alignment
|
static int |
LEFT
Box-orientation constant used to specify the left side of a box.
|
static int |
RIGHT
Box-orientation constant used to specify the right side of a box.
|
static int |
TOP
Box-orientation constant used to specify the top of a box.
|
Modifier | Constructor and Description |
---|---|
protected |
Component()
Creates a new instance of Component
|
Modifier and Type | Method and Description |
---|---|
void |
addFocusListener(FocusListener l)
Registers interest in receiving callbacks for focus gained events, a focus event
is invoked when the component accepts the focus.
|
boolean |
animate()
Allows the animation to reduce "repaint" calls when it returns false.
|
protected Dimension |
calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
calcScrollSize()
Method that can be overriden to represent the actual size of the component
when it differs from the desireable size for the viewport
|
boolean |
contains(int x,
int y)
Returns true if the given absolute coordinate is contained in the Component
|
protected void |
deinitialize()
Invoked to indicate that the component initialization is being reversed
since the component was detached from the container hierarchy.
|
protected void |
deinitializeCustomStyle(Style s)
Allows components to create a style of their own, this method cleans up
state for the given style
|
protected void |
dragInitiated()
Invoked on the focus component to let it know that drag has started on the parent container
for the case of a component that doesn't support scrolling
|
protected void |
fireClicked()
When working in 3 softbutton mode "fire" key (center softbutton) is sent to this method
in order to allow 3 button devices to work properly.
|
protected void |
focusGained()
Callback allowing a developer to track wheh the component gains focus
|
protected void |
focusLost()
Callback allowing a developer to track wheh the component loses focus
|
int |
getAbsoluteX()
Returns the absolute X location based on the component hierarchy, this method
calculates a location on the screen for the component rather than a relative
location as returned by getX()
|
int |
getAbsoluteY()
Returns the absolute Y location based on the component hierarchy, this method
calculates a location on the screen for the component rather than a relative
location as returned by getX()
|
int |
getBaseline(int width,
int height)
The baseline for the component text according to which it should be aligned
with other components for best visual look.
|
int |
getBaselineResizeBehavior()
Returns a constant indicating how the baseline varies with the size
of the component.
|
protected Border |
getBorder()
Normally returns getStyle().getBorder() but some subclasses might use this
to programmatically replace the border in runtime e.g.
|
int |
getBottomGap()
Returns the gap to be left for the bottom scrollbar on the X axis.
|
protected Rectangle |
getBounds()
Returns the component bounds which is sometimes more convenient than invoking
getX/Y/Width/Height.
|
Object |
getClientProperty(String key)
Client properties allow the association of meta-data with a component, this
is useful for some applications that construct GUI's on the fly and need
to track the connection between the UI and the data.
|
Form |
getComponentForm()
Returns the Component Form or null if this Component
is not added yet to a form
|
Rectangle |
getDirtyRegion()
gets the Component dirty region
|
int |
getHeight()
Returns the component height
|
Label |
getLabelForComponent()
Allows us to indicate the label associated with this component thus providing
visual feedback related for this component e.g.
|
Component |
getNextFocusDown()
Allows us to determine which component will receive focus next when traversing
with the down key
|
Component |
getNextFocusLeft()
Allows us to determine which component will receive focus next when traversing
with the left key.
|
Component |
getNextFocusRight()
Allows us to determine which component will receive focus next when traversing
with the right key
|
Component |
getNextFocusUp()
Allows us to determine which component will receive focus next when traversing
with the up key.
|
Container |
getParent()
Returns the container in which this component is contained
|
int |
getPreferredH()
Helper method to retrieve the preferred height of the component.
|
Dimension |
getPreferredSize()
Returns the Component Preferred Size, there is no guarantee the Component will
be sized at its Preferred Size.
|
int |
getPreferredW()
Helper method to retrieve the preferred width of the component.
|
int |
getScrollAnimationSpeed()
Scroll animation speed in milliseconds allowing a developer to slow down or accelerate
the smooth animation mode
|
Dimension |
getScrollDimension()
Returns the Components dimension in scrolling, this is very similar to the
preferred size aspect only it represents actual scrolling limits.
|
int |
getScrollX()
Indicates the X position of the scrolling, this number is relative to the
component position and so a position of 0 would indicate the x position
of the component.
|
int |
getScrollY()
Indicates the Y position of the scrolling, this number is relative to the
component position and so a position of 0 would indicate the x position
of the component.
|
String |
getSelectCommandText()
Allows determining the text for the select command used in the 3rd softbutton
mode.
|
Style |
getSelectedStyle()
Returns the Component Style for the selected state allowing us to manipulate
the look of the component when it owns focus
|
int |
getSideGap()
Returns the gap to be left for the side scrollbar on the Y axis.
|
Style |
getStyle()
Returns the Component Style allowing us to manipulate the look of the
component
|
String |
getUIID()
Unique identifier for a component.
|
Style |
getUnselectedStyle()
Returns the Component Style for the unselected mode allowing us to manipulate
the look of the component
|
protected Rectangle |
getVisibleBounds()
Returns the component bounds for scrolling which might differ from the getBounds for large components
e.g.
|
int |
getWidth()
Returns the component width
|
int |
getX()
Returns the current component x location relatively to its parent container
|
int |
getY()
Returns the component y location relatively to its parent container
|
boolean |
handlesInput()
Prevents key events from being grabbed for focus traversal.
|
boolean |
hasFocus()
Returns true if the component has focus
|
protected void |
initComponent()
Allows subclasses to bind functionality that relies on fully initialized and
"ready for action" component state
|
protected void |
initCustomStyle(Style s)
Allows components to create a style of their own, this method binds the listener
to the style and installs a bg painter
|
boolean |
isBorderPainted()
Deprecated.
use getStyle().getBorder() != null
|
protected boolean |
isDragActivated()
Indicates whether we are in the middle of a drag operation, this method allows
developers overriding the pointer released events to know when this is a drag
operaton.
|
boolean |
isEnabled()
Indicates whether component is enabled or disabled thus allowing us to prevent
a component from receiving input events and indicate so visually
|
boolean |
isFocusable()
Returns true if this component can receive focus and is enabled
|
boolean |
isFocusPainted()
Deprecated.
this method would be removed in a future version of the API, manipulate getSelectedStyle()
to achieve a similar look
|
protected boolean |
isInitialized()
Indicates if the component is in the initialized state, a component is initialized
when its initComponent() method was invoked.
|
boolean |
isRTL()
Is the component a bidi RTL component
|
protected boolean |
isScrollable()
Indicates whether the component should/could scroll by default a component
is not scrollable.
|
boolean |
isScrollableX()
Indicates whether the component should/could scroll on the X axis
|
boolean |
isScrollableY()
Indicates whether the component should/could scroll on the Y axis
|
boolean |
isScrollVisible()
Indicate whether this component scroll is visible
|
protected boolean |
isSelectableInteraction()
This method allows a component to indicate that it is interested in an "implicit" select
command to appear in the "fire" button when 3 softbuttons are defined in a device.
|
boolean |
isSmoothScrolling()
Indicates that scrolling through the component should work as an animation
|
boolean |
isTactileTouch()
Indicates whether the component should "trigger" tactile touch when pressed by the user
in a touch screen UI.
|
protected boolean |
isTactileTouch(int x,
int y)
Elaborate components might not provide tactile feedback for all their areas (e.g.
|
boolean |
isTensileDragEnabled()
Indicates whether tensile drag (dragging beyond the boundry of the component and
snapping back) is enabled for this component.
|
boolean |
isVisible()
Returns whether the component is visible or not
|
void |
keyPressed(int keyCode)
If this Component is focused, the key pressed event
will call this method
|
void |
keyReleased(int keyCode)
If this Component is focused, the key released event
will call this method
|
void |
keyRepeated(int keyCode)
If this Component is focused, the key repeat event
will call this method.
|
protected void |
laidOut()
This is a callback method to inform the Component when it's been laidout
on the parent Container
|
protected void |
longKeyPress(int keyCode)
If this Component is focused this method is invoked when the user presses
and holds the key
|
protected void |
longPointerPress(int x,
int y)
If this Component is focused this method is invoked when the user presses
and holds the pointer on the Component
|
void |
paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
protected void |
paintBackground(Graphics g)
Paints the background of the component, invoked with the clipping region
and appropriate scroll translation.
|
void |
paintBackgrounds(Graphics g)
This method paints all the parents Components Background.
|
protected void |
paintBorder(Graphics g)
Draws the component border if such a border exists.
|
void |
paintComponent(Graphics g)
Paints this component as a root by going to all the parent components and
setting the absolute translation based on coordinates and scroll status.
|
void |
paintComponent(Graphics g,
boolean background)
Paints this component as a root by going to all the parent components and
setting the absolute translation based on coordinates and scroll status.
|
protected void |
paintScrollbars(Graphics g)
Paints the UI for the scrollbars on the component, this will be invoked only
for scrollable components.
|
protected void |
paintScrollbarX(Graphics g)
Paints the UI for the scrollbar on the X axis, this method allows component
subclasses to customize the look of a scrollbar
|
protected void |
paintScrollbarY(Graphics g)
Paints the UI for the scrollbar on the Y axis, this method allows component
subclasses to customize the look of a scrollbar
|
protected String |
paramString()
Returns a string representing the state of this component.
|
void |
pointerDragged(int[] x,
int[] y)
If this Component is focused, the pointer dragged event
will call this method
|
void |
pointerDragged(int x,
int y)
If this Component is focused, the pointer dragged event
will call this method
|
void |
pointerHover(int[] x,
int[] y)
Invoked for devices where the pointer can hover without actually clicking
the display.
|
void |
pointerHoverReleased(int[] x,
int[] y)
Invoked for devices where the pointer can hover without actually clicking
the display.
|
void |
pointerPressed(int[] x,
int[] y)
If this Component is focused, the pointer pressed event
will call this method
|
void |
pointerPressed(int x,
int y)
If this Component is focused, the pointer pressed event
will call this method
|
void |
pointerReleased(int[] x,
int[] y)
If this Component is focused, the pointer released event
will call this method
|
void |
pointerReleased(int x,
int y)
If this Component is focused, the pointer released event
will call this method
|
void |
putClientProperty(String key,
Object value)
Client properties allow the association of meta-data with a component, this
is useful for some applications that construct GUI's on the fly and need
to track the connection between the UI and the data.
|
void |
refreshTheme()
Makes sure the component is up to date with the current style object
|
protected void |
refreshTheme(String id)
Makes sure the component is up to date with the given UIID
|
void |
removeFocusListener(FocusListener l)
Deregisters interest in receiving callbacks for focus gained events
|
void |
repaint()
Repaint this Component, the repaint call causes a callback of the paint
method on the event dispatch thread.
|
void |
repaint(int x,
int y,
int w,
int h)
Repaints a specific region within the component
|
void |
requestFocus()
Changes the current component to the focused component, will work only
for a component that belongs to a parent form.
|
protected void |
scrollRectToVisible(int x,
int y,
int width,
int height,
Component coordinateSpace)
Makes sure the component is visible in the scroll if this container
is scrollable
|
protected void |
scrollRectToVisible(Rectangle rect,
Component coordinateSpace)
Makes sure the component is visible in the scroll if this container
is scrollable
|
void |
setBorderPainted(boolean b)
Deprecated.
use getStyle().setBorder() to null to disable borders or install
a different border
|
void |
setCellRenderer(boolean cellRenderer)
Used as an optimization to mark that this component is currently being
used as a cell renderer
|
void |
setDirtyRegion(Rectangle dirty)
sets the Component dirty region
|
void |
setEnabled(boolean enabled)
Indicates whether component is enabled or disabled thus allowing us to prevent
a component from receiving input events and indicate so visually
|
void |
setFocus(boolean focused)
This flag doesn't really give focus, its a state that determines
what colors from the Style should be used when painting the component.
|
void |
setFocusable(boolean focusable)
A simple setter to determine if this Component can get focused
|
void |
setFocusPainted(boolean focusPainted)
Indicates whether focus should be drawn around the component or whether
it will handle its own focus painting
|
void |
setHandlesInput(boolean handlesInput)
Prevents key events from being grabbed for focus traversal.
|
void |
setHeight(int height)
Sets the Component height, this method is exposed for the purpose of
external layout managers and should not be invoked directly.
If a user wishes to effect the component size setPreferredSize should be used. |
protected void |
setInitialized(boolean initialized)
Indicates if the component is in the initialized state, a component is initialized
when its initComponent() method was invoked.
|
void |
setIsScrollVisible(boolean isScrollVisible)
Set whether this component scroll is visible
|
void |
setLabelForComponent(Label componentLabel)
Allows us to indicate the label associated with this component thus providing
visual feedback related for this component e.g.
|
void |
setNextFocusDown(Component nextFocusDown)
Allows us to determine which component will receive focus next when traversing
with the down key
|
void |
setNextFocusLeft(Component nextFocusLeft)
Allows us to determine which component will receive focus next when traversing
with the left key, this method doesn't affect the general focus behavior.
|
void |
setNextFocusRight(Component nextFocusRight)
Allows us to determine which component will receive focus next when traversing
with the right key
|
void |
setNextFocusUp(Component nextFocusUp)
Allows us to determine which component will receive focus next when traversing
with the up key, this method doesn't affect the general focus behavior.
|
void |
setPreferredH(int preferredH)
Helper method to set the preferred height of the component.
|
void |
setPreferredSize(Dimension d)
Sets the Component Preferred Size, there is no guarantee the Component will
be sized at its Preferred Size.
|
void |
setPreferredW(int preferredW)
Helper method to set the preferred width of the component.
|
void |
setRTL(boolean rtl)
Is the component a bidi RTL component
|
void |
setScrollAnimationSpeed(int animationSpeed)
Scroll animation speed in milliseconds allowing a developer to slow down or accelerate
the smooth animation mode
|
void |
setScrollSize(Dimension d)
Set the size for the scroll area
|
protected void |
setScrollX(int scrollX)
Indicates the X position of the scrolling, this number is relative to the
component position and so a position of 0 would indicate the x position
of the component.
|
protected void |
setScrollY(int scrollY)
Indicates the X position of the scrolling, this number is relative to the
component position and so a position of 0 would indicate the x position
of the component.
|
void |
setSelectCommandText(String selectText)
Allows determining the text for the select command used in the 3rd softbutton
mode.
|
void |
setSelectedStyle(Style style)
Changes the Component selected Style by replacing the Component Style with the given Style
|
protected void |
setShouldCalcPreferredSize(boolean shouldCalcPreferredSize)
Indicates the values within the component have changed and preferred
size should be recalculated
|
void |
setSize(Dimension d)
Sets the Component size, this method is exposed for the purpose of
external layout managers and should not be invoked directly.
If a user wishes to effect the component size setPreferredSize should be used. |
void |
setSmoothScrolling(boolean smoothScrolling)
Indicates that scrolling through the component should work as an animation
|
void |
setStyle(Style style)
Deprecated.
|
void |
setTactileTouch(boolean tactileTouch)
Indicates whether the component should "trigger" tactile touch when pressed by the user
in a touch screen UI.
|
void |
setTensileDragEnabled(boolean tensileDragEnabled)
Indicates whether tensile drag (dragging beyond the boundry of the component and
snapping back) is enabled for this component.
|
void |
setUIID(String id)
This method sets the Component the Unique identifier.
|
void |
setUnselectedStyle(Style style)
Changes the Component Style by replacing the Component Style with the given Style
|
void |
setUnSelectedStyle(Style style)
Deprecated.
use setUnselectedStyle (the case of the S character in this method is incorrect)
|
void |
setVisible(boolean visible)
Toggles visibility of the component
|
void |
setWidth(int width)
Sets the Component width, this method is exposed for the purpose of
external layout managers and should not be invoked directly.
If a user wishes to effect the component size setPreferredSize should be used. |
void |
setX(int x)
Sets the Component x location relative to the parent container, this method
is exposed for the purpose of external layout managers and should not be invoked
directly.
|
void |
setY(int y)
Sets the Component y location relative to the parent container, this method
is exposed for the purpose of external layout managers and should not be invoked
directly.
|
void |
styleChanged(String propertyName,
Style source)
Invoked to indicate a change in a propertyName of a Style
|
String |
toString()
Overriden to return a useful value for debugging purposes
|
public static final int BRB_CONSTANT_ASCENT
getBaselineResizeBehavior()
,
Constant Field Valuespublic static final int BRB_CONSTANT_DESCENT
getBaselineResizeBehavior()
,
Constant Field Valuespublic static final int BRB_CENTER_OFFSET
getBaselineResizeBehavior()
,
Constant Field Valuespublic static final int BRB_OTHER
getBaselineResizeBehavior()
,
Constant Field Valuespublic static final int CENTER
public static final int TOP
public static final int LEFT
public static final int BOTTOM
public static final int RIGHT
public int getX()
public int getY()
public boolean isVisible()
public Object getClientProperty(String key)
key
- the key used for putClientPropertypublic void putClientProperty(String key, Object value)
key
- arbitrary key for the propertyvalue
- the value assigned to the given client propertypublic final Rectangle getDirtyRegion()
public final void setDirtyRegion(Rectangle dirty)
dirty
- public void setVisible(boolean visible)
visible
- true if component is visible; otherwise falsepublic int getWidth()
public int getHeight()
public void setX(int x)
x
- the current x coordinate of the components originpublic void setY(int y)
y
- the current y coordinate of the components originpublic int getBaseline(int width, int height)
width
- the component widthheight
- the component heightpublic int getBaselineResizeBehavior()
public void setPreferredSize(Dimension d)
d
- the component dimensionpublic Dimension getPreferredSize()
public Dimension getScrollDimension()
protected Dimension calcScrollSize()
public void setScrollSize(Dimension d)
d
- dimension of the scroll areapublic void setPreferredW(int preferredW)
preferredW
- the preferred width of the componentsetPreferredSize(com.sun.lwuit.geom.Dimension)
public void setPreferredH(int preferredH)
preferredH
- the preferred height of the componentsetPreferredSize(com.sun.lwuit.geom.Dimension)
public int getPreferredW()
getPreferredSize()
public int getPreferredH()
getPreferredSize()
public void setWidth(int width)
width
- the width of the componentsetPreferredSize(com.sun.lwuit.geom.Dimension)
public void setHeight(int height)
height
- the height of the componentsetPreferredSize(com.sun.lwuit.geom.Dimension)
public void setSize(Dimension d)
d
- the component dimensionsetPreferredSize(com.sun.lwuit.geom.Dimension)
public String getUIID()
public void setUIID(String id)
id
- public Container getParent()
public void addFocusListener(FocusListener l)
l
- listener interface implementing the observable patternpublic void removeFocusListener(FocusListener l)
l
- listener interface implementing the observable patternprotected void fireClicked()
protected boolean isSelectableInteraction()
public void setSelectCommandText(String selectText)
selectText
- text for the interaction with the softkeypublic String getSelectCommandText()
public void setLabelForComponent(Label componentLabel)
componentLabel
- a label associated with this componentpublic Label getLabelForComponent()
protected void focusGained()
protected void focusLost()
public void paintBackgrounds(Graphics g)
g
- the graphics objectpublic int getAbsoluteX()
getX()
public int getAbsoluteY()
getY()
protected void paintScrollbars(Graphics g)
g
- the component graphicsprotected void paintScrollbarX(Graphics g)
g
- the component graphicsprotected void paintScrollbarY(Graphics g)
g
- the component graphicspublic final void paintComponent(Graphics g)
g
- the graphics to paint this Component onpublic final void paintComponent(Graphics g, boolean background)
g
- the graphics to paint this Component onbackground
- if true paints all parents backgroundprotected Border getBorder()
protected void paintBackground(Graphics g)
g
- the component graphicspublic void paint(Graphics g)
protected boolean isScrollable()
public boolean isScrollableX()
public boolean isScrollableY()
public int getScrollX()
public int getScrollY()
protected void setScrollX(int scrollX)
scrollX
- the X position of the scrollingprotected void setScrollY(int scrollY)
scrollY
- the Y position of the scrollingpublic int getBottomGap()
public int getSideGap()
public boolean contains(int x, int y)
x
- the given absolute x coordinatey
- the given absolute y coordinateprotected Dimension calcPreferredSize()
protected Rectangle getBounds()
protected Rectangle getVisibleBounds()
public boolean isFocusable()
public void setFocusable(boolean focusable)
focusable
- indicate whether this component can get focusedprotected void setShouldCalcPreferredSize(boolean shouldCalcPreferredSize)
shouldCalcPreferredSize
- indicate whether this component need to
recalculate his preferred sizepublic boolean isFocusPainted()
public void setFocusPainted(boolean focusPainted)
focusPainted
- indicates whether focus should be drawn around the
componentpublic boolean handlesInput()
public void setHandlesInput(boolean handlesInput)
handlesInput
- indicates whether key events can be grabbed for
focus traversalpublic boolean hasFocus()
setFocus(boolean)
public void setFocus(boolean focused)
focused
- sets the state that determines what colors from the
Style should be used when painting a focused componentrequestFocus()
public Form getComponentForm()
public void repaint()
Display
public void repaint(int x, int y, int w, int h)
x
- boundry of the region to repainty
- boundry of the region to repaintw
- boundry of the region to repainth
- boundry of the region to repaintprotected void longKeyPress(int keyCode)
keyCode
- the key code value to indicate a physical key.public void keyPressed(int keyCode)
keyCode
- the key code value to indicate a physical key.public void keyReleased(int keyCode)
keyCode
- the key code value to indicate a physical key.public void keyRepeated(int keyCode)
keyCode
- the key code value to indicate a physical key.public int getScrollAnimationSpeed()
public void setScrollAnimationSpeed(int animationSpeed)
animationSpeed
- scroll animation speed in millisecondspublic boolean isSmoothScrolling()
public void setSmoothScrolling(boolean smoothScrolling)
smoothScrolling
- indicates if a component uses smooth scrollingpublic void pointerHover(int[] x, int[] y)
x
- the pointer x coordinatey
- the pointer y coordinatepublic void pointerHoverReleased(int[] x, int[] y)
x
- the pointer x coordinatey
- the pointer y coordinatepublic void pointerDragged(int[] x, int[] y)
x
- the pointer x coordinatey
- the pointer y coordinateprotected void dragInitiated()
public void pointerDragged(int x, int y)
x
- the pointer x coordinatey
- the pointer y coordinatepublic void pointerPressed(int[] x, int[] y)
x
- the pointer x coordinatey
- the pointer y coordinatepublic void pointerPressed(int x, int y)
x
- the pointer x coordinatey
- the pointer y coordinatepublic void pointerReleased(int[] x, int[] y)
x
- the pointer x coordinatey
- the pointer y coordinateprotected void longPointerPress(int x, int y)
public void pointerReleased(int x, int y)
x
- the pointer x coordinatey
- the pointer y coordinatepublic void setTensileDragEnabled(boolean tensileDragEnabled)
tensileDragEnabled
- true to enable tensile dragpublic boolean isTensileDragEnabled()
public Style getStyle()
public Style getUnselectedStyle()
public Style getSelectedStyle()
public void setStyle(Style style)
style
- the component Style objectpublic void setUnSelectedStyle(Style style)
style
- the component Style objectpublic void setUnselectedStyle(Style style)
style
- the component Style objectpublic void setSelectedStyle(Style style)
style
- the component Style objectpublic void requestFocus()
public String toString()
protected String paramString()
null
.public void refreshTheme()
protected void refreshTheme(String id)
id
- The Style Id to update the Component withprotected boolean isDragActivated()
public boolean animate()
Animation
Display
class.protected void scrollRectToVisible(Rectangle rect, Component coordinateSpace)
rect
- the rectangle that need to be visiblecoordinateSpace
- the component according to whose coordinates
rect is defined. Rect's x/y are relative to that component
(they are not absolute).protected void scrollRectToVisible(int x, int y, int width, int height, Component coordinateSpace)
x
- y
- width
- height
- coordinateSpace
- the component according to whose coordinates
rect is defined. Rect's x/y are relative to that component
(they are not absolute).public void setBorderPainted(boolean b)
b
- true would cause the paintBorder method to be invoked false
allows us to hide the border of the component without deriving the classpublic boolean isBorderPainted()
protected void paintBorder(Graphics g)
g
- graphics context on which the border is paintedpublic void setCellRenderer(boolean cellRenderer)
cellRenderer
- indicate whether this component is currently being
used as a cell rendererpublic boolean isScrollVisible()
public void setIsScrollVisible(boolean isScrollVisible)
isScrollVisible
- Indicate whether this component scroll is visibleprotected void laidOut()
protected void deinitialize()
protected void initComponent()
protected boolean isInitialized()
protected void setInitialized(boolean initialized)
initialized
- Indicates if the component is in the initialized statepublic void styleChanged(String propertyName, Style source)
StyleListener
styleChanged
in interface StyleListener
propertyName
- the property name that was changedsource
- The changed Style objectpublic Component getNextFocusDown()
public void setNextFocusDown(Component nextFocusDown)
nextFocusDown
- the next focus componentpublic Component getNextFocusUp()
public void setNextFocusUp(Component nextFocusUp)
nextFocusUp
- next focus componentpublic Component getNextFocusLeft()
public void setNextFocusLeft(Component nextFocusLeft)
nextFocusLeft
- the next focus componentpublic Component getNextFocusRight()
public void setNextFocusRight(Component nextFocusRight)
nextFocusRight
- the next focus componentpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true to enable false to disableprotected void initCustomStyle(Style s)
s
- style to initializeprotected void deinitializeCustomStyle(Style s)
s
- style no longer usedpublic boolean isRTL()
public void setRTL(boolean rtl)
rtl
- true if the component should work in a right to left modeprotected boolean isTactileTouch(int x, int y)
x
- the x positiony
- the y positionpublic boolean isTactileTouch()
public void setTactileTouch(boolean tactileTouch)
tactileTouch
- true to trigger vibration when the component is pressed