public class FwkInfoBusDialogPane extends FwkDialogPane implements javax.infobus.InfoBusMember, javax.infobus.InfoBusDataConsumer
,
Serialized Formjavax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
fwkDialog, helpId, icon, ident, tip, title
bgImage, controller, descriptor, fwkItem, imgHeight, imgWidth, lineAppearance, newHeight, newWidth, pageFormat, readingDOM, text, textAppearance, xalign, yalign
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, LEFT, RIGHT, TOP
INFOBUS_SOURCE
AUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME
Constructor and Description |
---|
FwkInfoBusDialogPane()
The constructor.
|
FwkInfoBusDialogPane(java.lang.String title,
java.lang.String infoBusName,
java.awt.datatransfer.DataFlavor dataFlavor,
java.lang.String filter)
The constructor receive the initial color and transparency.
|
FwkInfoBusDialogPane(java.lang.String title,
java.lang.String infoBusName,
java.lang.String mimeType,
java.lang.String filter)
The constructor receive the initial color no transparency slider will be generated.
|
Modifier and Type | Method and Description |
---|---|
void |
addInfoBusPropertyListener(java.beans.PropertyChangeListener pcl) |
void |
addInfoBusVetoableListener(java.beans.VetoableChangeListener vcl) |
protected void |
addItem(java.lang.Object obj) |
protected void |
createPane(java.lang.String t)
Create the panel.
|
void |
dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent e)
The data item available listener method.
|
void |
dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent e)
The data revoked method.
|
java.lang.String |
getFilter()
Retrieves the filter string.
|
javax.infobus.InfoBus |
getInfoBus() |
java.lang.String |
getInfoBusName()
Retrieves the name of the connected infobus.
|
java.lang.String |
getInitialFilter()
Get the inital filter string.
|
java.lang.String |
getInitialInfoBusName()
Get the inital info bus name.
|
java.lang.String |
getInitialMimeType()
Get the inital MIME-type string.
|
java.lang.String |
getMimeType()
Retrieves the MIME-type specification.
|
FwkDialogPaneValueInterface |
getSelectedValue()
Get the selected value.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
protected void |
initialize(java.lang.String infoBusName,
java.lang.String mimeType,
java.lang.String filter)
Intialize the values.
|
boolean |
isConnected()
Get the connect flag.
|
void |
joinInfoBus(java.awt.Component component) |
void |
joinInfoBus(java.lang.String busName) |
void |
leaveInfoBus() |
static void |
main(java.lang.String[] args)
The Main body to test the class.
|
boolean |
needsReset()
This dialog doesn't need a reset button.
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Property change listener support.
|
void |
removeInfoBusPropertyListener(java.beans.PropertyChangeListener pcl) |
void |
removeInfoBusVetoableListener(java.beans.VetoableChangeListener vcl) |
protected void |
setConnected(boolean flag)
Set the connect flag..
|
void |
setFilter(java.lang.String filter)
Set the filter string.
|
void |
setInfoBus(javax.infobus.InfoBus newInfoBus) |
void |
setInfoBusName(java.lang.String infoBusName)
Join the new named infobus.
|
void |
setInfoBusNameEditable(boolean flag)
Set the infobus name input widget edit flag.
|
void |
setInitialFilter(java.lang.String filter)
Set the inital filter string.
|
void |
setInitialInfoBusName(java.lang.String infoBusName)
Set the inital color.
|
void |
setInitialMimeType(java.lang.String mimeType)
Set the inital MIME-type.
|
void |
setMimeType(java.lang.String mimeType)
Set the MIME-type.
|
void |
setMimeTypeEditable(boolean flag)
Set the mimetype input widget edit flag.
|
void |
setSelectedValue(FwkDialogPaneValueInterface value)
Setthe selected value.
|
void |
setSelectionMode(int mode)
Set the selection mode of the list.
|
protected void |
updateListBox()
Update the data item box.
|
addKeyListener, buttonCreated, cancelPerformed, dialogWillClose, dialogWillOpen, fireKeyEvent, getHelpID, getIcon, getIdent, getKeyListenerArray, getParams, getTip, getTitle, isAllowedToConsume, isScrollable, needsCancel, needsClose, needsHelp, needsOk, okPerformed, removeKeyListener, setDefaults, setHelpID, setIcon, setIdent, setTip, setTitle, toString
addCommand, addCommand, addPropertyChangeListener, addPropertyChangeListener, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getClassName, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getController, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getDescriptor, getGroup, getIcon, getIconKey, getIconKey, getInstanceDescriptor, getName, getNumberOfPages, getPageFormat, getPersistentObjectNames, getPresentationString, getPresentationString, getPrintable, getPrintJobName, getProperty, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, getPropertyGroup, getSource, getSupportEMail, getTitleName, getTransferData, getTransferDataFlavors, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, isDataFlavorSupported, isPropertyChangeEventSuspended, lostOwnership, paintComponent, print, printPanel, readConstructor, readFromDOM, readingDOM, readingDOM, refresh, release, removeCommand, removeFromGroup, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBackgroundImage, setBuild, setClassName, setCommands, setCompany, setCompanyInternetAddress, setController, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIconKey, setIconKey, setLineAppearance, setName, setPageFormat, setProperty, setPropertyGroup, setSource, setSupportEMail, setText, setTextAlignment, setTextAppearance, setTitleName, suspendChangeManager, suspendPropertyChangeEvents, writeConstructor, writeToDOM, writeToXML
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
release
add
public static final java.lang.String version
public FwkInfoBusDialogPane()
public FwkInfoBusDialogPane(java.lang.String title, java.lang.String infoBusName, java.lang.String mimeType, java.lang.String filter)
title
- The title of the panel.fitler
- The filter string.mimeType
- The MIME-type of the value.public FwkInfoBusDialogPane(java.lang.String title, java.lang.String infoBusName, java.awt.datatransfer.DataFlavor dataFlavor, java.lang.String filter)
title
- The title of the panel.infoBusName
- The name of the inofbus to be conected.dataFlavor
- The dataflavor of the value.fitler
- The filter string.public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkDialogPane
protected void initialize(java.lang.String infoBusName, java.lang.String mimeType, java.lang.String filter)
title
- The title of the panel.mimeType
- The MIME-type of the value.fitler
- The filter string.protected void createPane(java.lang.String t)
t
- The title of the panel.protected void updateListBox()
protected void addItem(java.lang.Object obj)
public void setInfoBusName(java.lang.String infoBusName)
The
- name of the infobus to be connected.public void setMimeTypeEditable(boolean flag)
flag
- if true the mimetype is editable.
true is the defaults.public void setInfoBusNameEditable(boolean flag)
flag
- if true the infobus name is editable.
true is the defaults.public java.lang.String getInfoBusName()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public void dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent e)
dataItemAvailable
in interface javax.infobus.InfoBusDataConsumer
e
- The data available event.public void dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent e)
dataItemRevoked
in interface javax.infobus.InfoBusDataConsumer
e
- The data item revoked event.public void setInfoBus(javax.infobus.InfoBus newInfoBus) throws java.beans.PropertyVetoException
setInfoBus
in interface javax.infobus.InfoBusMember
java.beans.PropertyVetoException
public javax.infobus.InfoBus getInfoBus()
getInfoBus
in interface javax.infobus.InfoBusMember
public void joinInfoBus(java.lang.String busName) throws javax.infobus.InfoBusMembershipException, java.beans.PropertyVetoException
javax.infobus.InfoBusMembershipException
java.beans.PropertyVetoException
public void joinInfoBus(java.awt.Component component) throws javax.infobus.InfoBusMembershipException, java.beans.PropertyVetoException
javax.infobus.InfoBusMembershipException
java.beans.PropertyVetoException
public void leaveInfoBus() throws javax.infobus.InfoBusMembershipException, java.beans.PropertyVetoException
javax.infobus.InfoBusMembershipException
java.beans.PropertyVetoException
public void addInfoBusVetoableListener(java.beans.VetoableChangeListener vcl)
addInfoBusVetoableListener
in interface javax.infobus.InfoBusMember
public void removeInfoBusVetoableListener(java.beans.VetoableChangeListener vcl)
removeInfoBusVetoableListener
in interface javax.infobus.InfoBusMember
public void addInfoBusPropertyListener(java.beans.PropertyChangeListener pcl)
addInfoBusPropertyListener
in interface javax.infobus.InfoBusMember
public void removeInfoBusPropertyListener(java.beans.PropertyChangeListener pcl)
removeInfoBusPropertyListener
in interface javax.infobus.InfoBusMember
protected void setConnected(boolean flag)
flag
- Inidcates whether the pane is connected to an infobus.public boolean isConnected()
public void setInitialInfoBusName(java.lang.String infoBusName)
infoBusName
- The initial name of the connected infobus.public java.lang.String getInitialInfoBusName()
public void setInitialMimeType(java.lang.String mimeType)
mimeType
- The initial name of the MIME-type.public java.lang.String getInitialMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType
- The MIME type specification.public java.lang.String getMimeType()
public void setInitialFilter(java.lang.String filter)
fitler
- The initial name of the MIME-type.public java.lang.String getInitialFilter()
public void setFilter(java.lang.String filter)
filter
- The new filter string.public java.lang.String getFilter()
public void setSelectionMode(int mode)
mode
- The selection mode.JList
public FwkDialogPaneValueInterface getSelectedValue()
getSelectedValue
in interface FwkDialogPaneInterface
public void setSelectedValue(FwkDialogPaneValueInterface value)
setSelectedValue
in interface FwkDialogPaneInterface
font
- The new value.public boolean needsReset()
needsReset
in interface FwkDialogPaneInterface
needsReset
in class FwkDialogPane
public static void main(java.lang.String[] args)