public class Browser extends JFrame
Modifier and Type | Class and Description |
---|---|
private class |
Browser.AllFind |
private class |
Browser.AttrSet |
private class |
Browser.Entries |
static class |
Browser.Exit
An action listener that cancels any lookup service event registration
lease and then calls
System.exit . |
private class |
Browser.Exiter |
private class |
Browser.Fields |
private class |
Browser.Handler |
(package private) static class |
Browser.LeaseNotify |
private class |
Browser.Listener |
private class |
Browser.Lookup |
private class |
Browser.LookupListener |
private class |
Browser.MouseReceiver |
private class |
Browser.MultiFind |
private class |
Browser.PubFind |
private static class |
Browser.RegistrarMenuItem |
private class |
Browser.Reset |
private class |
Browser.Service |
(package private) class |
Browser.ServiceItemRenderer |
private class |
Browser.ServiceListItem |
private class |
Browser.ServiceListPopup |
private class |
Browser.Services |
private class |
Browser.Show |
private class |
Browser.UniFind |
private class |
Browser.Unmatch |
private class |
Browser.Value |
private class |
Browser.Values |
JFrame.AccessibleJFrame
Frame.AccessibleAWTFrame
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
Browser(ActionListener exiter,
Configuration config)
Creates an instance with the given action listener for the Exit
menu item and the given configuration.
|
Browser(String[] args,
LifeCycle lc)
Creates an instance with the given command line arguments and
life cycle callback.
|
Modifier and Type | Method and Description |
---|---|
private static void |
addNone(JMenu menu) |
private void |
addOne(ServiceRegistrar registrar) |
private void |
cancelLease() |
private void |
failure(Throwable t) |
private void |
genEntries(StringBuffer buf,
Entry[] entries,
boolean showNulls) |
private void |
genMatches(StringBuffer buf,
boolean match) |
private String |
genText(boolean match) |
(package private) static Class[] |
getInterfaces(Class c) |
private void |
init(ActionListener exiter,
Configuration config) |
(package private) boolean |
isAutoConfirm()
Indicates whether auto confirm is enabled to prevent from the user
having to click the 'Yes' button in the a popup window to confirm a
modification to the service browser pane is allowed to take place as
result of a service being removed, or its lookup attributes being
changed.
|
static void |
main(String[] args)
Runs the service browser.
|
private static String[] |
parseList(String names,
boolean groups) |
private void |
reset() |
private void |
resetTmpl() |
private void |
setGroups(String[] groups) |
private void |
setText(boolean match) |
private static String |
typeName(Class type) |
private void |
update() |
private static boolean |
valid(Field f) |
(package private) ActionListener |
wrap(ActionListener l) |
(package private) MenuListener |
wrap(MenuListener l) |
(package private) MouseListener |
wrap(MouseListener l) |
private Object |
wrap(Object obj,
Class iface) |
(package private) Runnable |
wrap(Runnable r) |
(package private) WindowListener |
wrap(WindowListener a) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFont, postEvent
static final String BROWSER
static final Logger logger
private transient SecurityContext ctx
private transient ClassLoader ccl
transient Configuration config
private transient DiscoveryGroupManagement disco
private transient ServiceRegistrar lookup
private transient Object eventSource
private transient long eventID
private transient long seqNo
private transient ActionListener exiter
private transient ServiceTemplate tmpl
private transient Browser.Listener listen
private transient Browser.LookupListener adder
private transient Lease elease
transient ProxyPreparer leasePreparer
transient ProxyPreparer servicePreparer
transient ProxyPreparer adminPreparer
private transient MethodConstraints locatorConstraints
transient LeaseRenewalManager leaseMgr
private transient LeaseListener lnotify
private transient List ignoreInterfaces
private transient JTextArea text
private transient JMenu registrars
private transient JCheckBoxMenuItem esuper
private transient JCheckBoxMenuItem ssuper
private transient JCheckBoxMenuItem sclass
private transient boolean isAdmin
private transient volatile boolean autoConfirm
private transient JList list
private transient DefaultListModel listModel
private transient DefaultListModel dummyModel
private transient JScrollPane listScrollPane
private static Icon[] icons
public Browser(ActionListener exiter, Configuration config) throws ConfigurationException, IOException
Exit
. The action listener can be
overridden by a configuration entry. The configuration
defaults to an empty configuration.exiter
- the action listener, or null
config
- the configuration, or null
ConfigurationException
IOException
public Browser(String[] args, LifeCycle lc) throws ConfigurationException, LoginException, IOException
dispose
method of
this instance, cancels any lookup service event registration lease,
unexports any remote event listener, and calls the
unregister
method of the life cycle
callback. The action listener can be overridden by a configuration
entry.args
- command line argumentslc
- life cycle callback, or null
.ConfigurationException
LoginException
IOException
private void init(ActionListener exiter, Configuration config) throws ConfigurationException, IOException
ConfigurationException
IOException
private void setText(boolean match)
private String genText(boolean match)
private void genEntries(StringBuffer buf, Entry[] entries, boolean showNulls)
private static boolean valid(Field f)
private void genMatches(StringBuffer buf, boolean match)
private static void addNone(JMenu menu)
private void addOne(ServiceRegistrar registrar)
boolean isAutoConfirm()
true
in case no popup is required to have the user
confirm the modifications, false
otherwiseActionListener wrap(ActionListener l)
MenuListener wrap(MenuListener l)
MouseListener wrap(MouseListener l)
WindowListener wrap(WindowListener a)
private void resetTmpl()
private void reset()
private void setGroups(String[] groups)
private void cancelLease()
private void update()
private void failure(Throwable t)
public static void main(String[] args)
args
- command line argumentsCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.