|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.jidesoft.swing.Gripper
public class Gripper
Gripper
is a component that you can drag. Actually the component itself doesn't allow you to drag, it is
up to the component who uses this Gripper to add mouse motion listener and do the dragging. The Gripper will paint
itself so that user can tell immediately that it is something draggable.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
ROLLOVER_ENABLED_CHANGED_PROPERTY
Identifies a change from rollover enabled to disabled or back to enabled. |
static String |
ROLLOVER_PROPERTY
|
static String |
SELECTED_PROPERTY
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface com.jidesoft.swing.Alignable |
---|
PROPERTY_ORIENTATION |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Gripper()
Creates a new horizontal separator. |
|
Gripper(int orientation)
Creates a new separator with the specified horizontal or vertical orientation. |
Method Summary | |
---|---|
Cursor |
getCursor()
Gets the cursor set in the component. |
int |
getOrientation()
Gets the orientation. |
GripperUI |
getUI()
Returns the L&F object that renders this component. |
String |
getUIClassID()
Returns the name of the L&F class that renders this component. |
boolean |
isRollover()
|
boolean |
isRolloverEnabled()
Gets the rolloverEnabled property. |
boolean |
isSelected()
|
void |
setOrientation(int orientation)
Changes the orientation. |
void |
setRollover(boolean rollover)
|
void |
setRolloverEnabled(boolean b)
Sets the rolloverEnabled property, which must be true for rollover effects to occur. |
void |
setSelected(boolean selected)
|
boolean |
supportHorizontalOrientation()
return true if it supports horizontal orientation. |
boolean |
supportVerticalOrientation()
return true if it supports vertical orientation. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ROLLOVER_ENABLED_CHANGED_PROPERTY
public static final String ROLLOVER_PROPERTY
public static final String SELECTED_PROPERTY
Constructor Detail |
---|
public Gripper()
public Gripper(int orientation)
orientation
- an integer specifying SwingConstants.HORIZONTAL
or
SwingConstants.VERTICAL
IllegalArgumentException
- if orientation
is neither SwingConstants.HORIZONTAL
nor SwingConstants.VERTICAL
Method Detail |
---|
public GripperUI getUI()
public void updateUI()
updateUI
in class JComponent
JComponent.updateUI()
public String getUIClassID()
getUIClassID
in class JComponent
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public boolean supportVerticalOrientation()
supportVerticalOrientation
in interface Alignable
public boolean supportHorizontalOrientation()
supportHorizontalOrientation
in interface Alignable
public void setOrientation(int orientation)
setOrientation
in interface Alignable
orientation
- the new orientation.public int getOrientation()
getOrientation
in interface Alignable
public Cursor getCursor()
Cursor.DEFAULT_CURSOR
is returned.
getCursor
in class Component
Component.setCursor(java.awt.Cursor)
public boolean isRolloverEnabled()
rolloverEnabled
property.
rolloverEnabled
propertysetRolloverEnabled(boolean)
public void setRolloverEnabled(boolean b)
rolloverEnabled
property, which must be true
for rollover effects to occur.
The default value for the rolloverEnabled
property is false
. Some look and feels might
not implement rollover effects; they will ignore this property.
b
- if true
, rollover effects should be paintedisRolloverEnabled()
public boolean isRollover()
public void setRollover(boolean rollover)
public boolean isSelected()
public void setSelected(boolean selected)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |