|
||||||||||
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
javax.swing.JInternalFrame
org.diamondspin.DSFrame
org.diamondspin.DSWebFrame
public class DSWebFrame
Another kind of default element to display HTML, RTF or text document.
Copyright 2002-2009 DiamondSpin project. All Rights Reserved. Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies. To request Permission to incorporate this software into commercial products contact one of the authors of the project.
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHORS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.diamondspin.DSFrame |
---|
DSFrame.DSInternalFrameTitlePane, DSFrame.DSMenuBarProxy, DSFrame.FingerRotationMode, DSFrame.FingerRotationSpeed |
Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
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 | |
---|---|
protected String |
Document1
|
protected DSEditorPane |
DSEditorPane1
|
protected DSJComboBox |
DSJComboBox1
|
protected DSKeyboardPanel |
DSKeyboardPanel1
|
protected JPanel |
JPanel1
|
protected JScrollPane |
jScrollPane1
|
Fields inherited from class javax.swing.JInternalFrame |
---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
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 org.diamondspin.DSElement |
---|
HIGH_QUALITY, LOW_QUALITY |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DSWebFrame(DSTabletopPane dsTabletopPane_Arg)
Constructor for use by DrawPane |
|
DSWebFrame(DSTabletopPane dsTabletopPane_Arg,
String Document_Arg,
double d,
double alpha,
double scale)
Constructor |
Method Summary | |
---|---|
void |
adjustSelection(int x,
int y)
Description of the Method |
void |
cancelSelection()
Description of the Method |
void |
closeKeyboard()
Closes the keyboard panel |
URL |
getActiveURL()
Gets the activeURL attribute of the DSWebFrame object |
String |
getHTMLTitle()
|
String |
getPreviewDocument()
Gets the previewDocument attribute of the DSWebFrame object |
String |
getSelectedText()
Gets the selectedText attribute of the DSWebFrame object |
URL |
getURL()
|
String |
getWebFrameName()
|
void |
initComponents()
Init the swing component inside this window |
boolean |
isHtml()
Gets the html attribute of the DSWebFrame object |
void |
keyPressed(KeyEvent KeyEvent_Arg)
give the key event to the edited text if exist |
void |
keyReleased(KeyEvent KeyEvent_Arg)
give the key event to the edited text if exist |
void |
keyTyped(KeyEvent KeyEvent_Arg)
give the key event to the edited text if exist |
void |
makeSelection(int x,
int y)
Description of the Method |
void |
mouseReleased(MouseEvent MouseEvent_Arg)
Description of the Method |
void |
openKeyboard()
Opens the keyboard panel up |
void |
setURL(URL URL_Arg)
change the url of the document |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
---|
mouseClicked, mouseEntered, mouseExited, mousePressed |
Methods inherited from interface java.awt.event.MouseMotionListener |
---|
mouseDragged, mouseMoved |
Methods inherited from interface org.diamondspin.DSElement |
---|
acceptSlavery, acceptSlaveryRelease, addDSElementListener, doesContain, getAbsoluteScale, getAlpha, getBeta, getD, getHeight, getIDOwner, getScale, getTransform, getWidth, grabElement, isActive, isBetaAbs, isMouseTarget, isVisible, mouseClicked, mouseDragged, mouseMoved, mousePressed, moveElementCenterTo, paint, paint, removeDSElementListener, setActive, setAlpha, setBeta, setBetaAbs, setD, setIDOwner, setScale, setSize, setVisible |
Field Detail |
---|
protected DSEditorPane DSEditorPane1
protected JScrollPane jScrollPane1
protected JPanel JPanel1
protected DSJComboBox DSJComboBox1
protected DSKeyboardPanel DSKeyboardPanel1
protected String Document1
Constructor Detail |
---|
public DSWebFrame(DSTabletopPane dsTabletopPane_Arg)
dsTabletopPane_Arg
- The unique DSTabletopPane which display everythingpublic DSWebFrame(DSTabletopPane dsTabletopPane_Arg, String Document_Arg, double d, double alpha, double scale)
dsTabletopPane_Arg
- The unique DSTabletopPane which display everythingDocument_Arg
- The document name (file or url)d
- The distance to the center where to put the new elementalpha
- The angle around the center where to put the new elementscale
- The scale factor to zoom the elenemtMethod Detail |
---|
public boolean isHtml()
public URL getActiveURL()
public String getPreviewDocument()
public void setURL(URL URL_Arg)
URL_Arg
- The new uRL valuepublic URL getURL()
public String getWebFrameName()
public String toString()
DSFrame
toString
in class DSFrame
public final String getHTMLTitle()
public final void initComponents() throws Exception
Exception
- Description of the Exceptionpublic void mouseReleased(MouseEvent MouseEvent_Arg)
mouseReleased
in interface MouseListener
mouseReleased
in interface DSElement
mouseReleased
in class DSFrame
MouseEvent_Arg
- Description of the Parameterpublic void keyTyped(KeyEvent KeyEvent_Arg)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent KeyEvent_Arg)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent KeyEvent_Arg)
keyReleased
in interface KeyListener
public void makeSelection(int x, int y)
x
- Description of the Parametery
- Description of the Parameterpublic void adjustSelection(int x, int y)
x
- Description of the Parametery
- Description of the Parameterpublic String getSelectedText()
public void cancelSelection()
public void openKeyboard()
public void closeKeyboard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |