|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DocPane
ice.pilots.html4.DocPaneXml
| Field Summary | |
boolean |
enableTextSelection
|
| Constructor Summary | |
DocPaneXml()
|
|
| Method Summary | |
protected abstract void |
checkAwtTree(ObjectBox box,
Component c)
Check if the AWT component of the given ObjectPainter is properly located in the AWT hierarchy (DocViews, Scrollers). |
boolean |
checkDocumentId()
|
DOMUIEvent |
createDomUIEvent(int id)
|
protected abstract Container |
createEmbeddedContainer(EmbeddedObject obj,
Component child)
Create a graphical container for an embedded object (IFRAME, OBJECT) |
protected abstract ObjectPainter |
createFormControl(DElement e)
Create a form control for a given DOM element If e is DSelectElement, should return DSelectElement.SelectPainter |
protected abstract Component |
createFramesDividerComponent()
Create the graphical component for the FrameDivider( the actual border) |
protected abstract ObjectPainter |
createScroller()
Create a CSS Scroller |
void |
docClearHighlights()
Clear all highlighted segments |
void |
docClearSelection()
Clear any selection. |
boolean |
docContainsFixedBoxes()
|
void |
docHighlightRange(int startPosition,
int endPosition)
Highlight a section of text. |
boolean |
docIsSelectionActive()
Publicly expose a docMethod to clients wishing to know if there is currently something selected in this visual component tree. |
void |
docLayout(int viewportWidth,
int viewportHeight)
|
void |
docMarkDocument(int xPos,
int yPos)
With clearing the selection comes placing a cursor which enables keyboard text selection from this point. |
void |
docPaint(Graphics g)
|
void |
docPaintFixed(Graphics g)
|
void |
docPostLayout()
|
void |
docScrollChanged(int x,
int y)
A method that indicates that the scroll position has changed. |
void |
docSetSelection(int x1,
int y1,
int x2,
int y2)
Set a selection range based on a dragging operation. |
int |
getDocHeight()
|
int |
getDocWidth()
|
String |
getDragPayload()
Retrieve the Drag payload from the Document. |
ObjectPainter |
getNodePainter(DNode node)
|
protected abstract Component |
getPaneComponent()
|
ThePilot |
getPilot()
|
abstract Color |
getSelectionBackground()
Retrieve the selection background color for the tookit in use. |
abstract Color |
getSelectionColor()
Retrieve the selection foreground color for the tookit in use. |
protected abstract void |
init(int scrollbars)
|
boolean |
is_msie_event_emulation()
|
boolean |
isGestureListeningEnabled(int xPos,
int yPos)
Check to see if DragAndDrop Gesture recognition should be enabled in the Component. |
boolean |
isPilotDisposed()
|
protected void |
notifyFocusGain()
|
protected void |
notifyFocusLost()
|
protected abstract void |
onNodeBlurEvent(DOMUIEvent event,
DNode node)
|
protected abstract void |
onNodeFocusEvent(DOMUIEvent event,
DNode node)
|
protected abstract void |
onNodeSelectCall(DNode node)
|
void |
packageDropped(String payload)
Default implementation of the ICEDropClient interface. |
void |
postSelectedToClipboard()
Post selected items to the clipboard. |
protected boolean |
processAwtKeyEvent(Component c,
KeyEvent awtEvent,
EventListener action)
|
protected abstract void |
revalidate()
|
void |
revalidate(int x,
int y,
int w,
int h)
Schedule relayout with new boundaries |
abstract void |
setDropClient(ICEDropClient client)
Register a 'Drag and Drop' Drop client with the Browser containment hierarchy. |
protected abstract void |
setPaneBounds(int x,
int y,
int w,
int h)
|
boolean |
uiEvent(DOMUIEvent uie,
InputEvent awtEvent,
EventListener action)
Append general UI event info and dispatch to cssLayout and DOM |
| Methods inherited from class ice.storm.DocPane |
canScroll, createImage, doesAutoRepaint, getPaneHeight, getPaneWidth, getScrollMaxX, getScrollMaxY, getScrollX, getScrollX, getScrollY, getScrollY, isVisibleOnScreen, reqClear, reqFocus, reqRepaint, reqRepaint, setAutoRepaint, setCursor, setScrollPosition, updateScrollbars |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean enableTextSelection
| Constructor Detail |
public DocPaneXml()
| Method Detail |
public void revalidate(int x,
int y,
int w,
int h)
DocPane
revalidate in class DocPane
protected abstract void setPaneBounds(int x,
int y,
int w,
int h)
protected abstract void revalidate()
protected abstract void init(int scrollbars)
protected abstract Component getPaneComponent()
public abstract Color getSelectionColor()
public abstract Color getSelectionBackground()
public void postSelectedToClipboard()
protected abstract ObjectPainter createFormControl(DElement e)
protected abstract ObjectPainter createScroller()
protected abstract Container createEmbeddedContainer(EmbeddedObject obj,
Component child)
obj - EmbeddedObject (viewport)child - pilot componentprotected abstract Component createFramesDividerComponent()
protected abstract void checkAwtTree(ObjectBox box,
Component c)
protected final boolean processAwtKeyEvent(Component c,
KeyEvent awtEvent,
EventListener action)
public final boolean uiEvent(DOMUIEvent uie,
InputEvent awtEvent,
EventListener action)
protected abstract void onNodeSelectCall(DNode node)
protected abstract void onNodeBlurEvent(DOMUIEvent event,
DNode node)
protected abstract void onNodeFocusEvent(DOMUIEvent event,
DNode node)
public void packageDropped(String payload)
packageDropped in interface ICEDropClientpayload -
public boolean isGestureListeningEnabled(int xPos,
int yPos)
getDragPayload. This method takes care of converting the screen location to a document location.
xPos - Screen X positionyPos - Screen y position
public String getDragPayload()
isGestureListeningEnabled
method returns true.
isGestureListeningEnabled(int, int)public abstract void setDropClient(ICEDropClient client)
Currently, this Drop mechanism will only deliver notification of Textual Drop operations. No images will be accepted.
Alternatively, if Clients are using Swing, and they are guaranteed to be in a Java 1.4 environment, they may register themselves as Drop clients of the Glass Pane component that is over the JPanel hierarchy as part of normal windows layout. If additional functionality is required, this would be the preferred method of Drop architecture, since this is strictly a convenience mechanism for a wide range of JVM targets.
client - An instance of the Drop Clientpublic boolean docIsSelectionActive()
public final boolean checkDocumentId()
public boolean is_msie_event_emulation()
public final ThePilot getPilot()
public final boolean isPilotDisposed()
public final int getDocWidth()
getDocWidth in class DocPanepublic final int getDocHeight()
getDocHeight in class DocPane
public final void docLayout(int viewportWidth,
int viewportHeight)
public final void docPostLayout()
public final void docClearSelection()
public final void docScrollChanged(int x,
int y)
x - X scrollPositiony - Y scrollPosition
public final void docMarkDocument(int xPos,
int yPos)
xPos - x position of the click that caused the clear.yPos - y position of the click
public final void docSetSelection(int x1,
int y1,
int x2,
int y2)
x1 - the x coordinate of the starting position of the scrolly1 - the y coordinate of the starting position of the scrollx2 - the x coordinate of the ending position of the scrolly2 - the y coordinate of the ending position of the scroll
public void docHighlightRange(int startPosition,
int endPosition)
Currently, this assumes a generally LTR layout, and that the startPosition will be less than the endPosition.
startPosition - the character offset within the document of the start
of the highlight region.endPosition - the character offset of the last highlighted regionHtml4DocumentAccess.getCount(int)public void docClearHighlights()
public final boolean docContainsFixedBoxes()
public final void docPaint(Graphics g)
public final void docPaintFixed(Graphics g)
public final DOMUIEvent createDomUIEvent(int id)
public final ObjectPainter getNodePainter(DNode node)
protected final void notifyFocusGain()
protected final void notifyFocusLost()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||