|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.dialog.StandardDialogPane com.jidesoft.tipoftheday.TipOfTheDayDialogPane
public class TipOfTheDayDialogPane
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 com.jidesoft.dialog.StandardDialogPane |
---|
_bannerPanel, _buttonPanel, _contentPanel, PROPERTY_CANCEL_ACTION, PROPERTY_DEFAULT_ACTION |
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 com.jidesoft.dialog.ButtonNames |
---|
APPLY, BACK, BROWSE, CANCEL, CLEAR, CLOSE, DETAILS, EDIT, EXIT, FIND, FIND_NEXT, FINISH, FORWARD, HELP, NEW, NEXT, NO, OK, OPEN, PRINT, REPLACE, RESET, RETRY, RUN, SAVE, SAVE_AS, STOP, YES |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TipOfTheDayDialogPane()
|
|
TipOfTheDayDialogPane(TipOfTheDaySource tipOfTheDaySource,
Action showTipAction,
URL optionalStyleSheet)
|
Method Summary | |
---|---|
JComponent |
createBannerPanel()
Subclasses should implement this method to create the banner panel. |
ButtonPanel |
createButtonPanel()
Subclasses should implement this method to create the button panel. |
JComponent |
createContentPanel()
Subclasses should implement this method to create the content panel. |
protected Component |
createHtmlBrowser(URL optionalStyleSheet)
Creates the html browser component. |
protected JComponent |
createScrollPaneForHtmlBrowser(Component htmlBrowser)
Creates a scroll pane for the html browser. |
protected void |
displayHtmlBrowser(String content,
String url)
Displays the content in the html browser. |
protected Action |
getCloseAction()
Gets the action used by close button. |
int |
getCurrentTipIndex()
Gets the current tip index. |
protected Action |
getNextTipAction()
Gets the action used by next tip button. |
protected Action |
getPreviousTipAction()
Gets the action used by prev tip button. |
String |
getResourceString(String key)
Gets the resource string used in JideTabbedPane. |
JCheckBox |
getShowTipCheckBox()
Get the showTip check box. |
TipOfTheDaySource |
getTipOfTheDaySource()
Gets the TipOfTheDaySource. |
boolean |
isShowTooltip()
Get the flag indicating if tooltip is showing. |
void |
nextTip()
Displays next tip. |
void |
previousTip()
Displays previous tip. |
void |
setCurrentTipIndex(int currentTipIndex)
Sets the current tip index. |
void |
setShowTooltip(boolean showTooltip)
Set the flag indicating if tooltip is showing. |
Methods inherited from class com.jidesoft.dialog.StandardDialogPane |
---|
getBannerPanel, getButtonPanel, getContentPanel, getDefaultAction, getDefaultCancelAction, getInitFocusedComponent, initComponents, layoutComponents, setDefaultAction, setDefaultCancelAction, setInitFocusedComponent |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TipOfTheDayDialogPane() throws HeadlessException
HeadlessException
public TipOfTheDayDialogPane(TipOfTheDaySource tipOfTheDaySource, Action showTipAction, URL optionalStyleSheet)
Method Detail |
---|
public JComponent createBannerPanel()
StandardDialogPane
BannerPanel
If subclass doesn't want to have a banner panel, just return null.
createBannerPanel
in class StandardDialogPane
public JComponent createContentPanel()
StandardDialogPane
createContentPanel
in class StandardDialogPane
public ButtonPanel createButtonPanel()
StandardDialogPane
ButtonPanel
.
createButtonPanel
in class StandardDialogPane
ButtonPanel
protected Component createHtmlBrowser(URL optionalStyleSheet)
optionalStyleSheet
- a stylesheet file
protected JComponent createScrollPaneForHtmlBrowser(Component htmlBrowser)
htmlBrowser
- the html browser
protected void displayHtmlBrowser(String content, String url)
content
- the html contenturl
- the url of the html content if any. By default, we didn't use this parameter as JEditorPane
doesn't need it. If you write your own component for html browser, you might need it.protected Action getPreviousTipAction()
protected Action getNextTipAction()
protected Action getCloseAction()
public void previousTip()
public void nextTip()
public int getCurrentTipIndex()
setCurrentTipIndex(int)
to set the index back.
public void setCurrentTipIndex(int currentTipIndex)
currentTipIndex
- the current tip index.public TipOfTheDaySource getTipOfTheDaySource()
public JCheckBox getShowTipCheckBox()
public boolean isShowTooltip()
public void setShowTooltip(boolean showTooltip)
showTooltip
- the flagpublic String getResourceString(String key)
key
- the resource key
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |