Java Doc for DesignerPaneBase.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JComponent
   org.netbeans.modules.visualweb.text.DesignerPaneBase

All known Subclasses:   org.netbeans.modules.visualweb.designer.DesignerPane,
DesignerPaneBase
abstract public class DesignerPaneBase extends JComponent implements Scrollable,Accessible(Code)
Base Rave page editor component. Based heavily on JTextComponent in javax.swing.text. This is the superclass for DesignerPane which handles most of the basic text editing (caret, selection, keyboard handling). Conceivably the DesignerPane specific stuff could be moved up into this class. (Earlier I was actually subclassing the real JTextComponent in DesignerPane which is why I had this separation).

Inner Class :public static class KeyBinding
Inner Class :static class DefaultKeymap implements Keymap
Inner Class :static class KeymapWrapper extends InputMap
Inner Class :static class KeymapActionMap extends ActionMap

Field Summary
final public static  StringDEFAULT_KEYMAP
     The default keymap that will be shared by all JTextComponent instances unless they have had a different keymap set.
final public static  StringbackwardAction
     Name of the Action for moving the caret logically backward one position.
final public static  StringbeginLineAction
     Name of the Action for moving the caret to the beginning of a line.
final public static  StringbeginWordAction
     Name of the Action for moving the caret to the beginning of a word.
final public static  StringdefaultKeyTypedAction
     Name of the action that is executed by default if a key typed event is received and there is no keymap entry.
final public static  StringdeleteNextCharAction
     Name of the action to delete the character of content that follows the current caret position.
final public static  StringdeletePrevCharAction
     Name of the action to delete the character of content that precedes the current caret position.
final public static  StringdownAction
     Name of the Action for moving the caret logically downward one position.
final public static  StringendLineAction
     Name of the Action for moving the caret to the end of a line.
final public static  StringendWordAction
     Name of the Action for moving the caret to the end of a word.
final public static  StringforwardAction
     Name of the Action for moving the caret logically forward one position.
final public static  StringselectAllAction
    
final public static  StringselectLineAction
     Name of the Action for selecting a line around the caret.
final public static  StringselectWordAction
     Name of the Action for selecting a word around the caret.
final public static  StringselectionBackwardAction
     Name of the Action for extending the selection by moving the caret logically backward one position.
final public static  StringselectionBeginLineAction
     Name of the Action for moving the caret to the beginning of a line, extending the selection.
final public static  StringselectionBeginWordAction
     Name of the Action for moving the caret to the beginning of a word, extending the selection.
final public static  StringselectionDownAction
     Name of the Action for moving the caret logically downward one position, extending the selection.
final public static  StringselectionEndLineAction
     Name of the Action for moving the caret to the end of a line, extending the selection.
final public static  StringselectionEndWordAction
     Name of the Action for moving the caret to the end of a word, extending the selection.
final public static  StringselectionForwardAction
     Name of the Action for extending the selection by moving the caret logically forward one position.
final public static  StringselectionUpAction
     Name of the Action for moving the caret logically upward one position, extending the selection.
final public static  StringupAction
     Name of the Action for moving the caret logically upward one position.

Constructor Summary
public  DesignerPaneBase()
     Creates a new JTextComponent.

Method Summary
public static  KeymapaddKeymap(String nm, Keymap parent)
     Adds a new keymap into the keymap hierarchy.
public  voidcaretDetachDom()
    
public  TransferablecopySelection(boolean cut)
     XXX Incorrect impl of cut/copy operation.
public  voidcreateCaret()
    
abstract public  voidescape(long when)
     XXX Escaping.
public  AccessibleContextgetAccessibleContext()
     Gets the AccessibleContext associated with this DesignerPaneBase.
public  Action[]getActions()
     Fetches the command list for the editor.
public  ColorgetCaretColor()
     Fetches the current color used to render the caret.
public  DomPositiongetCaretDot()
    
public  PointgetCaretMagicPosition()
    
public  DomPositiongetCaretMark()
    
public  DomPositiongetCaretPosition()
     Returns the position of the text insertion caret for the text component.
public  DomRangegetCaretRange()
    
public  DomPositiongetFirstPosition()
    
final public static  DesignerPaneBasegetFocusedComponent()
     Returns the JTextComponent that most recently had focus.
public  KeymapgetKeymap()
     Fetches the keymap currently active in this text component.
public static  KeymapgetKeymap(String nm)
     Fetches a named keymap previously added to the document.
public  DomPositiongetLastPosition()
    
public  DimensiongetPreferredScrollableViewportSize()
     Returns the preferred size of the viewport for a view component.
public  DimensiongetPreferredSize()
     Returns the preferred size for the JEditorPane.
public  intgetScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
     Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation.

The default implementation of this is to simply return the visible area.

public  booleangetScrollableTracksViewportHeight()
     Returns true if a viewport should always force the height of this Scrollable to match the height of the viewport.
public  booleangetScrollableTracksViewportWidth()
     Returns true if a viewport should always force the width of this Scrollable to match the width of the viewport.
public  intgetScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
     Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation.
public  ColorgetSelectedTextColor()
     Fetches the current color used to render the selected text.
public  ColorgetSelectionColor()
     Fetches the current color used to render the selection.
public  StringgetText(DomPosition offs, int len)
     Fetches a portion of the text represented by the component.
public  DesignerPaneBaseUIgetUI()
     Fetches the user-interface factory for this text-oriented editor.
public  StringgetUIClassID()
     Gets the class ID for the UI.
abstract public  WebFormgetWebForm()
    
public  booleanhasCaret()
    
public  booleanhasCaretSelection()
    
public  booleanisCaretReadOnlyRegion()
    
public  booleanisCaretVisible()
    
public static  voidloadKeymap(Keymap map, KeyBinding[] bindings, Action[] actions)
    

Loads a keymap with a bunch of bindings.

public  voidmouseClicked(MouseEvent evt)
    
public  voidmouseDragged(MouseEvent evt)
    
public  voidmousePressed(MouseEvent evt)
    
public  voidmouseReleased(MouseEvent evt)
    
public  voidmoveCaretDot(DomPosition dot)
    
public  voidpaintCaret(Graphics g)
    
public static  KeymapremoveKeymap(String nm)
     Removes a named keymap previously added to the document.
public  booleanremoveNextChar()
    
public  booleanremovePreviousChar()
    
public  voidreplaceSelection(String content)
    
public  voidselect(DomPosition selectionStart, DomPosition selectionEnd)
     Selects the text between the specified start and end positions.

This method sets the start and end positions of the selected text, enforcing the restriction that the start position must be greater than or equal to zero.

public  voidsetCaret(DesignerCaret c)
     Sets the caret to be used.
public  voidsetCaretColor(Color c)
     Sets the current color used to render the caret.
public  voidsetCaretDot(DomPosition dot)
    
public  voidsetCaretMagicPosition(Point magicPosition)
    
public  voidsetCaretVisible(boolean visible)
    
public  voidsetKeymap(Keymap map)
     Sets the keymap to use for binding events to actions.
public  voidsetSelectedTextColor(Color c)
     Sets the current color used to render the selected text. Setting the color to null is the same as Color.black.
public  voidsetSelectionColor(Color c)
     Sets the current color used to render the selection. Setting the color to null is the same as setting Color.white.
public  voidsetUI(DesignerPaneBaseUI ui)
     Sets the user-interface factory for this text-oriented editor.
 voidupdateInputMap(Keymap oldKm, Keymap newKm)
     Updates the InputMap s in response to a Keymap change.
public  voidupdateUI()
     Reloads the pluggable UI.

Field Detail
DEFAULT_KEYMAP
final public static String DEFAULT_KEYMAP(Code)
The default keymap that will be shared by all JTextComponent instances unless they have had a different keymap set.



backwardAction
final public static String backwardAction(Code)
Name of the Action for moving the caret logically backward one position.
See Also:   DesignerPaneBase.getActions



beginLineAction
final public static String beginLineAction(Code)
Name of the Action for moving the caret to the beginning of a line.
See Also:   DesignerPaneBase.getActions



beginWordAction
final public static String beginWordAction(Code)
Name of the Action for moving the caret to the beginning of a word.
See Also:   DesignerPaneBase.getActions



defaultKeyTypedAction
final public static String defaultKeyTypedAction(Code)
Name of the action that is executed by default if a key typed event is received and there is no keymap entry.
See Also:   DesignerPaneBase.getActions



deleteNextCharAction
final public static String deleteNextCharAction(Code)
Name of the action to delete the character of content that follows the current caret position.
See Also:   DesignerPaneBase.getActions



deletePrevCharAction
final public static String deletePrevCharAction(Code)
Name of the action to delete the character of content that precedes the current caret position.
See Also:   DesignerPaneBase.getActions



downAction
final public static String downAction(Code)
Name of the Action for moving the caret logically downward one position.
See Also:   DesignerPaneBase.getActions



endLineAction
final public static String endLineAction(Code)
Name of the Action for moving the caret to the end of a line.
See Also:   DesignerPaneBase.getActions



endWordAction
final public static String endWordAction(Code)
Name of the Action for moving the caret to the end of a word.
See Also:   DesignerPaneBase.getActions



forwardAction
final public static String forwardAction(Code)
Name of the Action for moving the caret logically forward one position.
See Also:   DesignerPaneBase.getActions



selectAllAction
final public static String selectAllAction(Code)
Name of the Action for selecting the entire document
See Also:   DesignerPaneBase.getActions



selectLineAction
final public static String selectLineAction(Code)
Name of the Action for selecting a line around the caret.
See Also:   DesignerPaneBase.getActions



selectWordAction
final public static String selectWordAction(Code)
Name of the Action for selecting a word around the caret.
See Also:   DesignerPaneBase.getActions



selectionBackwardAction
final public static String selectionBackwardAction(Code)
Name of the Action for extending the selection by moving the caret logically backward one position.
See Also:   DesignerPaneBase.getActions



selectionBeginLineAction
final public static String selectionBeginLineAction(Code)
Name of the Action for moving the caret to the beginning of a line, extending the selection.
See Also:   DesignerPaneBase.getActions



selectionBeginWordAction
final public static String selectionBeginWordAction(Code)
Name of the Action for moving the caret to the beginning of a word, extending the selection.
See Also:   DesignerPaneBase.getActions



selectionDownAction
final public static String selectionDownAction(Code)
Name of the Action for moving the caret logically downward one position, extending the selection.
See Also:   DesignerPaneBase.getActions



selectionEndLineAction
final public static String selectionEndLineAction(Code)
Name of the Action for moving the caret to the end of a line, extending the selection.
See Also:   DesignerPaneBase.getActions



selectionEndWordAction
final public static String selectionEndWordAction(Code)
Name of the Action for moving the caret to the end of a word, extending the selection.
See Also:   DesignerPaneBase.getActions



selectionForwardAction
final public static String selectionForwardAction(Code)
Name of the Action for extending the selection by moving the caret logically forward one position.
See Also:   DesignerPaneBase.getActions



selectionUpAction
final public static String selectionUpAction(Code)
Name of the Action for moving the caret logically upward one position, extending the selection.
See Also:   DesignerPaneBase.getActions



upAction
final public static String upAction(Code)
Name of the Action for moving the caret logically upward one position.
See Also:   DesignerPaneBase.getActions




Constructor Detail
DesignerPaneBase
public DesignerPaneBase()(Code)
Creates a new JTextComponent. Listeners for caret events are established, and the pluggable UI installed. The component is marked as editable. No layout manager is used, because layout is managed by the view subsystem of text. The document model is set to null.




Method Detail
addKeymap
public static Keymap addKeymap(String nm, Keymap parent)(Code)
Adds a new keymap into the keymap hierarchy. Keymap bindings resolve from bottom up so an attribute specified in a child will override an attribute specified in the parent.
Parameters:
  nm - the name of the keymap (must be unique within the collection of named keymaps inthe document); the name may be null if the keymap is unnamed, butthe caller is responsible for managing the reference returned as an unnamed keymapcan't be fetched by name
Parameters:
  parent - the parent keymap; this may be null if unspecified bindings neednot be resolved in some other keymap the keymap



caretDetachDom
public void caretDetachDom()(Code)



copySelection
public Transferable copySelection(boolean cut)(Code)
XXX Incorrect impl of cut/copy operation. Revise. Return the text in the selection, if any (if not returns null). If the cut parameter is true, then the selection is deleted too.



createCaret
public void createCaret()(Code)



escape
abstract public void escape(long when)(Code)
XXX Escaping. TODO Revise



getAccessibleContext
public AccessibleContext getAccessibleContext()(Code)
Gets the AccessibleContext associated with this DesignerPaneBase. an AccessibleDesignerPaneBase that serves as theAccessibleContext of this DesignerPaneBase



getActions
public Action[] getActions()(Code)
Fetches the command list for the editor. This is the list of commands supported by the plugged-in UI augmented by the collection of commands that the editor itself supports. These are useful for binding to events, such as in a keymap. the command list



getCaretColor
public Color getCaretColor()(Code)
Fetches the current color used to render the caret. the color



getCaretDot
public DomPosition getCaretDot()(Code)



getCaretMagicPosition
public Point getCaretMagicPosition()(Code)



getCaretMark
public DomPosition getCaretMark()(Code)



getCaretPosition
public DomPosition getCaretPosition()(Code)
Returns the position of the text insertion caret for the text component. the position of the text insertion caret for the text component >= 0



getCaretRange
public DomRange getCaretRange()(Code)



getFirstPosition
public DomPosition getFirstPosition()(Code)



getFocusedComponent
final public static DesignerPaneBase getFocusedComponent()(Code)
Returns the JTextComponent that most recently had focus. The returned value may currently have focus.



getKeymap
public Keymap getKeymap()(Code)
Fetches the keymap currently active in this text component. the keymap



getKeymap
public static Keymap getKeymap(String nm)(Code)
Fetches a named keymap previously added to the document. This does not work with null -named keymaps.
Parameters:
  nm - the name of the keymap the keymap



getLastPosition
public DomPosition getLastPosition()(Code)



getPreferredScrollableViewportSize
public Dimension getPreferredScrollableViewportSize()(Code)
Returns the preferred size of the viewport for a view component. This is implemented to do the default behavior of returning the preferred size of the component. the preferredSize of a JViewport whose view is thisScrollable



getPreferredSize
public Dimension getPreferredSize()(Code)
Returns the preferred size for the JEditorPane. The preferred size for JEditorPane is slightly altered from the preferred size of the superclass. If the size of the viewport has become smaller than the minimum size of the component, the scrollable definition for tracking width or height will turn to false. The default viewport layout will give the preferred size, and that is not desired in the case where the scrollable is tracking. In that case the normal preferred size is adjusted to the minimum size. This allows things like HTML tables to shrink down to their minimum size and then be laid out at their minimum size, refusing to shrink any further. a Dimension containing the preferred size



getScrollableBlockIncrement
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)(Code)
Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation.

The default implementation of this is to simply return the visible area. Subclasses will likely be able to provide a much more reasonable value.
Parameters:
  visibleRect - the view area visible within the viewport
Parameters:
  orientation - either SwingConstants.VERTICAL orSwingConstants.HORIZONTAL
Parameters:
  direction - less than zero to scroll up/left, greater than zero for down/right the "block" increment for scrolling in the specified direction
exception:
  IllegalArgumentException - for an invalid orientation
See Also:   JScrollBar.setBlockIncrement




getScrollableTracksViewportHeight
public boolean getScrollableTracksViewportHeight()(Code)
Returns true if a viewport should always force the height of this Scrollable to match the height of the viewport. true if a viewport should force the Scrollable's height to match itsown, false otherwise



getScrollableTracksViewportWidth
public boolean getScrollableTracksViewportWidth()(Code)
Returns true if a viewport should always force the width of this Scrollable to match the width of the viewport. true if a viewport should force the Scrollables width to match its own, falseotherwise



getScrollableUnitIncrement
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)(Code)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. Ideally, components should handle a partially exposed row or column by returning the distance required to completely expose the item.

The default implementation of this is to simply return 10% of the visible area. Subclasses are likely to be able to provide a much more reasonable value.
Parameters:
  visibleRect - the view area visible within the viewport
Parameters:
  orientation - either SwingConstants.VERTICAL orSwingConstants.HORIZONTAL
Parameters:
  direction - less than zero to scroll up/left, greater than zero for down/right the "unit" increment for scrolling in the specified direction
exception:
  IllegalArgumentException - for an invalid orientation
See Also:   JScrollBar.setUnitIncrement




getSelectedTextColor
public Color getSelectedTextColor()(Code)
Fetches the current color used to render the selected text. the color



getSelectionColor
public Color getSelectionColor()(Code)
Fetches the current color used to render the selection. the color



getText
public String getText(DomPosition offs, int len)(Code)
Fetches a portion of the text represented by the component. Returns an empty string if length is 0.
Parameters:
  offs - the offset >= 0
Parameters:
  len - the length >= 0 the text
exception:
  BadLocationException - if the offset or length are invalid



getUI
public DesignerPaneBaseUI getUI()(Code)
Fetches the user-interface factory for this text-oriented editor. the factory



getUIClassID
public String getUIClassID()(Code)
Gets the class ID for the UI. the string "EditorPaneUI"
See Also:   JComponent.getUIClassID
See Also:   UIDefaults.getUI



getWebForm
abstract public WebForm getWebForm()(Code)



hasCaret
public boolean hasCaret()(Code)



hasCaretSelection
public boolean hasCaretSelection()(Code)



isCaretReadOnlyRegion
public boolean isCaretReadOnlyRegion()(Code)



isCaretVisible
public boolean isCaretVisible()(Code)



loadKeymap
public static void loadKeymap(Keymap map, KeyBinding[] bindings, Action[] actions)(Code)

Loads a keymap with a bunch of bindings. This can be used to take a static table of definitions and load them into some keymap. The following example illustrates an example of binding some keys to the cut, copy, and paste actions associated with a JTextComponent. A code fragment to accomplish this might look as follows:


 static final JTextComponent.KeyBinding[] defaultBindings = {
 new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK),
 DefaultEditorKit.copyAction),
 new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_MASK),
 DefaultEditorKit.pasteAction),
 new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_MASK),
 DefaultEditorKit.cutAction),};
 JTextComponent c = new JTextPane();
 Keymap k = c.getKeymap();
 JTextComponent.loadKeymap(k, defaultBindings, c.getActions());
 
The sets of bindings and actions may be empty but must be non- null.
Parameters:
  map - the keymap
Parameters:
  bindings - the bindings
Parameters:
  actions - the set of actions



mouseClicked
public void mouseClicked(MouseEvent evt)(Code)



mouseDragged
public void mouseDragged(MouseEvent evt)(Code)



mousePressed
public void mousePressed(MouseEvent evt)(Code)



mouseReleased
public void mouseReleased(MouseEvent evt)(Code)



moveCaretDot
public void moveCaretDot(DomPosition dot)(Code)



paintCaret
public void paintCaret(Graphics g)(Code)



removeKeymap
public static Keymap removeKeymap(String nm)(Code)
Removes a named keymap previously added to the document. Keymaps with null names may not be removed in this way.
Parameters:
  nm - the name of the keymap to remove the keymap that was removed



removeNextChar
public boolean removeNextChar()(Code)



removePreviousChar
public boolean removePreviousChar()(Code)



replaceSelection
public void replaceSelection(String content)(Code)



select
public void select(DomPosition selectionStart, DomPosition selectionEnd)(Code)
Selects the text between the specified start and end positions.

This method sets the start and end positions of the selected text, enforcing the restriction that the start position must be greater than or equal to zero. The end position must be greater than or equal to the start position, and less than or equal to the length of the text component's text.

If the caller supplies values that are inconsistent or out of bounds, the method enforces these constraints silently, and without failure. Specifically, if the start position or end position is greater than the length of the text, it is reset to equal the text length. If the start position is less than zero, it is reset to zero, and if the end position is less than the start position, it is reset to the start position.

This call is provided for backward compatibility. It is routed to a call to setCaretPosition followed by a call to moveCaretPosition. The preferred way to manage selection is by calling those methods directly.
Parameters:
  selectionStart - the start position of the text
Parameters:
  selectionEnd - the end position of the text
See Also:   DesignerPaneBase.setCaretPosition
See Also:   DesignerPaneBase.moveCaretPosition




setCaret
public void setCaret(DesignerCaret c)(Code)
Sets the caret to be used. By default this will be set by the UI that gets installed. This can be changed to a custom caret if desired. Setting the caret results in a PropertyChange event ("caret") being fired.
Parameters:
  c - the caret
See Also:   DesignerPaneBase.getCaret



setCaretColor
public void setCaretColor(Color c)(Code)
Sets the current color used to render the caret. Setting to null effectively restores the default color. Setting the color results in a PropertyChange event ("caretColor") being fired.
Parameters:
  c - the color
See Also:   DesignerPaneBase.getCaretColor



setCaretDot
public void setCaretDot(DomPosition dot)(Code)



setCaretMagicPosition
public void setCaretMagicPosition(Point magicPosition)(Code)



setCaretVisible
public void setCaretVisible(boolean visible)(Code)



setKeymap
public void setKeymap(Keymap map)(Code)
Sets the keymap to use for binding events to actions. Setting to null effectively disables keyboard input. A PropertyChange event ("keymap") is fired when a new keymap is installed.
Parameters:
  map - the keymap
See Also:   DesignerPaneBase.getKeymap



setSelectedTextColor
public void setSelectedTextColor(Color c)(Code)
Sets the current color used to render the selected text. Setting the color to null is the same as Color.black. Setting the color results in a PropertyChange event ("selectedTextColor") being fired.
Parameters:
  c - the color
See Also:   DesignerPaneBase.getSelectedTextColor



setSelectionColor
public void setSelectionColor(Color c)(Code)
Sets the current color used to render the selection. Setting the color to null is the same as setting Color.white. Setting the color results in a PropertyChange event ("selectionColor").
Parameters:
  c - the color
See Also:   DesignerPaneBase.getSelectionColor



setUI
public void setUI(DesignerPaneBaseUI ui)(Code)
Sets the user-interface factory for this text-oriented editor.
Parameters:
  ui - the factory



updateInputMap
void updateInputMap(Keymap oldKm, Keymap newKm)(Code)
Updates the InputMap s in response to a Keymap change.
Parameters:
  oldKm - the old Keymap
Parameters:
  newKm - the new Keymap



updateUI
public void updateUI()(Code)
Reloads the pluggable UI. The key used to fetch the new interface is getUIClassID(). The type of the UI is DesignerPaneBaseUI. invalidate is called after setting the UI.



Fields inherited from javax.swing.JComponent
final public static String TOOL_TIP_TEXT_KEY(Code)(Java Doc)
final public static int UNDEFINED_CONDITION(Code)(Java Doc)
final public static int WHEN_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_FOCUSED(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_WINDOW(Code)(Java Doc)
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)
protected transient ComponentUI ui(Code)(Java Doc)

Methods inherited from javax.swing.JComponent
public void addAncestorListener(AncestorListener listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public JToolTip createToolTip()(Code)(Java Doc)
public void disable()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc)
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc)
final public ActionMap getActionMap()(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public AncestorListener[] getAncestorListeners()(Code)(Java Doc)
public boolean getAutoscrolls()(Code)(Java Doc)
public int getBaseline(int width, int height)(Code)(Java Doc)
public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc)
public Border getBorder()(Code)(Java Doc)
public Rectangle getBounds(Rectangle rv)(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc)
public JPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc)
public int getDebugGraphicsOptions()(Code)(Java Doc)
public static Locale getDefaultLocale()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public boolean getInheritsPopupMenu()(Code)(Java Doc)
final public InputMap getInputMap(int condition)(Code)(Java Doc)
final public InputMap getInputMap()(Code)(Java Doc)
public InputVerifier getInputVerifier()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public Insets getInsets(Insets insets)(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Point getLocation(Point rv)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Component getNextFocusableComponent()(Code)(Java Doc)
public Point getPopupLocation(MouseEvent event)(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public Dimension getSize(Dimension rv)(Code)(Java Doc)
public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public String getToolTipText(MouseEvent event)(Code)(Java Doc)
public Container getTopLevelAncestor()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc)
public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc)
public Rectangle getVisibleRect()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getX()(Code)(Java Doc)
public int getY()(Code)(Java Doc)
public void grabFocus()(Code)(Java Doc)
public boolean isDoubleBuffered()(Code)(Java Doc)
public static boolean isLightweightComponent(Component c)(Code)(Java Doc)
public boolean isManagingFocus()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isOptimizedDrawingEnabled()(Code)(Java Doc)
final public boolean isPaintingForPrint()(Code)(Java Doc)
public boolean isPaintingTile()(Code)(Java Doc)
public boolean isRequestFocusEnabled()(Code)(Java Doc)
public boolean isValidateRoot()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
protected void paintBorder(Graphics g)(Code)(Java Doc)
protected void paintChildren(Graphics g)(Code)(Java Doc)
protected void paintComponent(Graphics g)(Code)(Java Doc)
public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc)
public void paintImmediately(Rectangle r)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printAll(Graphics g)(Code)(Java Doc)
protected void printBorder(Graphics g)(Code)(Java Doc)
protected void printChildren(Graphics g)(Code)(Java Doc)
protected void printComponent(Graphics g)(Code)(Java Doc)
protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc)
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc)
protected void processKeyEvent(KeyEvent e)(Code)(Java Doc)
protected void processMouseEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc)
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc)
public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc)
public void repaint(Rectangle r)(Code)(Java Doc)
public boolean requestDefaultFocus()(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public boolean requestFocus(boolean temporary)(Code)(Java Doc)
public boolean requestFocusInWindow()(Code)(Java Doc)
protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc)
public void resetKeyboardActions()(Code)(Java Doc)
public void reshape(int x, int y, int w, int h)(Code)(Java Doc)
public void revalidate()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
final public void setActionMap(ActionMap am)(Code)(Java Doc)
public void setAlignmentX(float alignmentX)(Code)(Java Doc)
public void setAlignmentY(float alignmentY)(Code)(Java Doc)
public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc)
public void setBackground(Color bg)(Code)(Java Doc)
public void setBorder(Border border)(Code)(Java Doc)
public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc)
public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc)
public static void setDefaultLocale(Locale l)(Code)(Java Doc)
public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFont(Font font)(Code)(Java Doc)
public void setForeground(Color fg)(Code)(Java Doc)
public void setInheritsPopupMenu(boolean value)(Code)(Java Doc)
final public void setInputMap(int condition, InputMap map)(Code)(Java Doc)
public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc)
public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc)
public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc)
public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc)
public void setOpaque(boolean isOpaque)(Code)(Java Doc)
public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc)
public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc)
public void setToolTipText(String text)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
protected void setUI(ComponentUI newUI)(Code)(Java Doc)
public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc)
public void setVisible(boolean aFlag)(Code)(Java Doc)
public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.