|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.openide.windows.TopComponent
org.openide.windows.CloneableTopComponent
org.netbeans.core.HtmlBrowserComponent
public class HtmlBrowserComponent
Formerly HtmlBrowser.BrowserComponent.
| Nested Class Summary | |
|---|---|
static class |
HtmlBrowserComponent.BrowserReplacer
|
| Nested classes/interfaces inherited from class org.openide.windows.CloneableTopComponent |
|---|
CloneableTopComponent.Ref |
| Nested classes/interfaces inherited from class org.openide.windows.TopComponent |
|---|
TopComponent.Cloneable, TopComponent.Description, TopComponent.NodeName, TopComponent.OpenActionRegistration, TopComponent.Registration, TopComponent.Registry, TopComponent.SubComponent |
| 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 |
|---|
| Fields inherited from class org.openide.windows.CloneableTopComponent |
|---|
EMPTY |
| Fields inherited from class org.openide.windows.TopComponent |
|---|
CLOSE_EACH, CLOSE_LAST, PERSISTENCE_ALWAYS, PERSISTENCE_NEVER, PERSISTENCE_ONLY_OPENED, PROP_CLOSING_DISABLED, PROP_DND_COPY_DISABLED, PROP_DRAGGING_DISABLED, PROP_KEEP_PREFERRED_SIZE_WHEN_SLIDED_IN, PROP_MAXIMIZATION_DISABLED, PROP_SLIDING_DISABLED, PROP_UNDOCKING_DISABLED |
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
HtmlBrowserComponent()
Creates new html browser with toolbar and status line. |
|
HtmlBrowserComponent(boolean toolbar,
boolean statusLine)
Creates new html browser with toolbar and status line. |
|
HtmlBrowserComponent(HtmlBrowser.Factory fact,
boolean toolbar,
boolean statusLine)
Creates new html browser. |
|
| Method Summary | |
|---|---|
protected void |
componentActivated()
|
protected void |
componentClosed()
|
protected void |
componentOpened()
|
protected CloneableTopComponent |
createClonedObject()
|
URL |
getDocumentURL()
Gets current document url. |
HelpCtx |
getHelpCtx()
|
Image |
getIcon()
|
int |
getPersistenceType()
|
boolean |
isStatusLineVisible()
Gets status line state. |
boolean |
isToolbarVisible()
Gets status toolbar. |
void |
open()
always open this top component in our special mode, if no mode for this component is specified yet |
protected String |
preferredID()
|
void |
propertyChange(PropertyChangeEvent e)
|
void |
readExternal(ObjectInput in)
|
void |
setEnableHome(boolean b)
Enables/disables Home button. |
void |
setEnableLocation(boolean b)
Enables/disables location. |
void |
setStatusLineVisible(boolean v)
Shows/hides status line. |
void |
setToolbarVisible(boolean v)
Shows/hides toolbar. |
void |
setURL(String str)
Sets new URL. |
void |
setURL(URL url)
Sets new URL. |
protected Object |
writeReplace()
Serializes browser component -> writes Replacer object which holds browser content and look. |
| Methods inherited from class org.openide.windows.CloneableTopComponent |
|---|
canClose, canClose, clone, cloneComponent, cloneTopComponent, closeLast, getReference, setReference, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlBrowserComponent()
public HtmlBrowserComponent(boolean toolbar,
boolean statusLine)
public HtmlBrowserComponent(HtmlBrowser.Factory fact,
boolean toolbar,
boolean statusLine)
| Method Detail |
|---|
public int getPersistenceType()
getPersistenceType in class TopComponentpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic void open()
open in class TopComponent
protected Object writeReplace()
throws ObjectStreamException
writeReplace in class TopComponentObjectStreamException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class CloneableTopComponentIOException
ClassNotFoundExceptionprotected CloneableTopComponent createClonedObject()
createClonedObject in class CloneableTopComponentpublic HelpCtx getHelpCtx()
getHelpCtx in interface HelpCtx.ProvidergetHelpCtx in class TopComponentprotected void componentActivated()
componentActivated in class TopComponentprotected void componentClosed()
componentClosed in class CloneableTopComponentprotected void componentOpened()
componentOpened in class CloneableTopComponentpublic Image getIcon()
getIcon in class TopComponentpublic void setURL(String str)
str - URL to show in this browser.public void setURL(URL url)
url - URL to show in this browser.public final URL getDocumentURL()
public final void setEnableHome(boolean b)
public final void setEnableLocation(boolean b)
public boolean isStatusLineVisible()
public void setStatusLineVisible(boolean v)
public boolean isToolbarVisible()
public void setToolbarVisible(boolean v)
protected String preferredID()
preferredID in class TopComponent
|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||