org.openide.awt
Class HtmlBrowser.BrowserComponent
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--org.openide.windows.TopComponent
|
+--org.openide.windows.CloneableTopComponent
|
+--org.openide.awt.HtmlBrowser.BrowserComponent
- All Implemented Interfaces:
- Accessible, Externalizable, ImageObserver, MenuContainer, Serializable, TopComponent.Cloneable
- Enclosing class:
- HtmlBrowser
- public static class HtmlBrowser.BrowserComponent
- extends CloneableTopComponent
- See Also:
- Serialized Form
Field Summary |
static String |
MODE_NAME
programmatic name of special mode for this top component |
Methods inherited from class org.openide.windows.TopComponent |
close, close, closeNotify, componentDeactivated, getAccessibleContext, getActivatedNodes, getCloseOperation, getRegistry, getSystemActions, getUndoRedo, isOpened, isOpened, open, openNotify, requestFocus, requestVisible, setActivatedNodes, setCloseOperation, setIcon, setName |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus |
MODE_NAME
public static final String MODE_NAME
- programmatic name of special mode for this top component
HtmlBrowser.BrowserComponent
public HtmlBrowser.BrowserComponent()
- Creates new html browser with toolbar and status line.
HtmlBrowser.BrowserComponent
public HtmlBrowser.BrowserComponent(boolean toolbar,
boolean statusLine)
- Creates new html browser with toolbar and status line.
HtmlBrowser.BrowserComponent
public HtmlBrowser.BrowserComponent(HtmlBrowser.Factory fact,
boolean toolbar,
boolean statusLine)
- Creates new html browser.
open
public void open(Workspace workspace)
- always open this top component in our special mode, if
no mode for this component is specified yet
- Overrides:
open
in class TopComponent
- Following copied from class:
org.openide.windows.TopComponent
- Parameters:
workspace
- Workspace on which component should be opened.
Parameter can be null -> means current workspace.- See Also:
TopComponent.requestFocus()
writeReplace
protected Object writeReplace()
throws ObjectStreamException
- Serializes browser component -> writes Replacer object which
holds browser content and look.
- Overrides:
writeReplace
in class TopComponent
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Description copied from class:
TopComponent
- Deserialize this top component.
Subclasses wishing to store state must call the super method, then read from the stream.
- Overrides:
readExternal
in class CloneableTopComponent
- Following copied from class:
org.openide.windows.TopComponent
- Parameters:
in
- the stream to deserialize from
createClonedObject
protected CloneableTopComponent createClonedObject()
- Description copied from class:
CloneableTopComponent
- Called from
CloneableTopComponent.clone()
to actually create a new component from this one.
The default implementation only clones the object by calling Object.clone()
.
Subclasses may leave this as is, assuming they have no special needs for the cloned
data besides copying it from one object to the other. If they do, the superclass
method should be called, and the returned object modified appropriately.
- Overrides:
createClonedObject
in class CloneableTopComponent
- Following copied from class:
org.openide.windows.CloneableTopComponent
- Returns:
- a copy of this object
getHelpCtx
public HelpCtx getHelpCtx()
- Description copied from class:
TopComponent
- Get the help context for this component.
Subclasses should generally override this to return specific help.
- Overrides:
getHelpCtx
in class TopComponent
- Following copied from class:
org.openide.windows.TopComponent
- Returns:
- the help context
componentActivated
protected void componentActivated()
- Description copied from class:
TopComponent
- Called when this component is activated.
This happens when the parent window of this component gets focus
(and this component is the preferred one in it), or when
this component is selected in its window (and its window was already focussed).
Override this method to perform some special action on component activation:
typically, set performers for relevant actions.
Remember to call the super method.
The default implementation does nothing.
- Overrides:
componentActivated
in class TopComponent
getIcon
public Image getIcon()
- Overrides:
getIcon
in class TopComponent
- Following copied from class:
org.openide.windows.TopComponent
- Returns:
- The icon of the top component
setURL
public void setURL(String str)
- Sets new URL.
- Parameters:
str
- URL to show in this browser.
setURL
public void setURL(URL url)
- Sets new URL.
- Parameters:
str
- URL to show in this browser.
getDocumentURL
public final URL getDocumentURL()
- Gets current document url.
setEnableHome
public final void setEnableHome(boolean b)
- Enables/disables Home button.
setEnableLocation
public final void setEnableLocation(boolean b)
- Enables/disables location.
isStatusLineVisible
public boolean isStatusLineVisible()
- Gets status line state.
setStatusLineVisible
public void setStatusLineVisible(boolean v)
- Shows/hides status line.
isToolbarVisible
public boolean isToolbarVisible()
- Gets status toolbar.
setToolbarVisible
public void setToolbarVisible(boolean v)
- Shows/hides toolbar.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Adds property change listener.
- Overrides:
addPropertyChangeListener
in class JComponent
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Removes property change listener.
- Overrides:
removePropertyChangeListener
in class JComponent
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.