public class Ribs
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Ribs.RibsAdapter
An interface for objects that want notification about event processing.
|
static interface |
Ribs.RibsListener
An interface for objects that want notification about event processing.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
_lastControl |
Constructor and Description |
---|
Ribs() |
Modifier and Type | Method and Description |
---|---|
static void |
addRibsListener(Ribs.RibsListener aListener)
Adds a RibsListener to listeners array.
|
static RJAction |
getAction()
Returns the last RJAction associated with the last control change (and resulting sendAction() call).
|
static byte[] |
getBytes(java.lang.String aName,
java.lang.Object anOwner)
Returns a byte array for the given name and owner (tries to load from owner class resource dir or current dir).
|
static RibsEventListener |
getEventListener()
Returns the Ribs Event Listener.
|
static RibsEventQueue |
getEventQueue()
Returns the Ribs Event Queue.
|
static RJHelper |
getHelper(java.lang.Object anObj)
Returns the Ribs Helper object for a given object.
|
static java.awt.Image |
getImage(java.lang.String aName)
Returns the named image - tries to load from last owner class resource directory or current directory.
|
static java.awt.Image |
getImage(java.lang.String aName,
java.lang.Object anOwner)
Returns the named image - tries to load from given owner class resource directory or current directory.
|
static javax.swing.ImageIcon |
getImageIcon(java.lang.String aName)
Returns the named imageIcon - tries to load from last owner class resource directory or current directory.
|
static javax.swing.ImageIcon |
getImageIcon(java.lang.String aName,
java.lang.Object anOwner)
Returns the named imageIcon - tries to load from given owner class resource directory or current directory.
|
static java.io.InputStream |
getInputStream(java.lang.String aName,
java.lang.Object anOwner)
Returns an input stream for the given name - tries to load from given owner class resource dir or current dir.
|
static Ribs.RibsListener |
getListener(int anIndex)
Returns the individual listener at the given index.
|
static int |
getListenerCount()
Returns the number of RibsListeners in listeners array.
|
static RJPanel |
getRib(java.lang.Object anOwner)
This method tries to find, load and return a rib file using the name of the given owner's class.
|
static RJPanel |
getRib(java.lang.Object anOwner,
java.lang.Class aClass,
java.lang.Object aSource)
This method tries to load a rib file from aSource.
|
static boolean |
getValueIsAdjusting()
This method returns whether the last action sent by the last control was in the midst of a series of changes, like
inside a mouse loop (or the dragging of the knob on a slider).
|
static void |
init()
Initializes Ribs functionality (installs an event queue and configures helper map).
|
static boolean |
isAltDown()
Returns whether the alt key is down for the current input event.
|
static boolean |
isLoadingRibsDocument()
Returns whether Ribs is currently loading a document.
|
static boolean |
isMetaDown()
Returns whether the meta key is down for the current input event.
|
static boolean |
isMouseDown()
Returns whehter mouse is down in mouse drag loop.
|
static boolean |
isSendActionDisabled()
Returns whether Ribs' send action facility is disabled (so controls can be updated without triggering response).
|
static void |
removeRibsListener(Ribs.RibsListener aListener)
Removes an Ribs.EventListener from the RibsEventQueue.
|
static void |
reset(java.lang.Object aTarget)
This method registers the given object to be called "reset" at the end of the current event (using invokeLater).
|
static void |
resetImmediately(java.lang.Object aTarget)
This method simply invokes the resetUI() method of aTarget (immediately).
|
static void |
sendAction(javax.swing.JComponent aComponent,
RJAction anAction)
Conevenience to tell a component (via its helper) to fire its action.
|
static void |
sendAction(java.lang.Object anOwner,
java.lang.String aCallback,
javax.swing.JComponent aComponent,
RJAction anAction)
This method sends a callback to the owner of a component, on behalf of that component.
|
static void |
setLoadingRibsDocument(boolean aValue)
Sets whether Ribs is currently loading a document.
|
static boolean |
setSendActionDisabled(boolean aFlag)
Sets whether Ribs' send action facility is disabled (so controls can be updated without triggering response).
|
public static void init()
public static RJPanel getRib(java.lang.Object anOwner)
public static RJPanel getRib(java.lang.Object anOwner, java.lang.Class aClass, java.lang.Object aSource)
public static boolean isLoadingRibsDocument()
public static void setLoadingRibsDocument(boolean aValue)
public static RJHelper getHelper(java.lang.Object anObj)
public static java.awt.Image getImage(java.lang.String aName)
public static java.awt.Image getImage(java.lang.String aName, java.lang.Object anOwner)
public static javax.swing.ImageIcon getImageIcon(java.lang.String aName)
public static javax.swing.ImageIcon getImageIcon(java.lang.String aName, java.lang.Object anOwner)
public static byte[] getBytes(java.lang.String aName, java.lang.Object anOwner)
public static java.io.InputStream getInputStream(java.lang.String aName, java.lang.Object anOwner)
public static void reset(java.lang.Object aTarget)
public static void resetImmediately(java.lang.Object aTarget)
public static void sendAction(javax.swing.JComponent aComponent, RJAction anAction)
public static void sendAction(java.lang.Object anOwner, java.lang.String aCallback, javax.swing.JComponent aComponent, RJAction anAction)
public static boolean isSendActionDisabled()
public static boolean setSendActionDisabled(boolean aFlag)
public static RJAction getAction()
public static boolean getValueIsAdjusting()
public static boolean isAltDown()
public static boolean isMetaDown()
public static boolean isMouseDown()
public static RibsEventListener getEventListener()
public static RibsEventQueue getEventQueue()
public static int getListenerCount()
public static Ribs.RibsListener getListener(int anIndex)
public static void addRibsListener(Ribs.RibsListener aListener)
public static void removeRibsListener(Ribs.RibsListener aListener)