| java.lang.Object org.netbeans.modules.xml.text.completion.XMLResultItem org.netbeans.modules.xml.text.completion.ElementResultItem
ElementResultItem | class ElementResultItem extends XMLResultItem (Code) | | Represent element name (or its part for namespace prefix).
author: sands author: Petr Kuzel |
Method Summary | |
Color | getPaintColor() | public String | getReplacementText(int modifiers) Replacenment text can be cutomized to retun pairs, empty tag or
just name of element. | public boolean | substituteText(JTextComponent c, int offset, int len, int modifiers) If called with SHIFT_MASK modified it createa a start tag and
end tag pair and place caret between them. |
ElementResultItem | public ElementResultItem(GrammarResult res)(Code) | | Create a start element result item.
|
ElementResultItem | public ElementResultItem(String name)(Code) | | Create an end element result item.
|
getReplacementText | public String getReplacementText(int modifiers)(Code) | | Replacenment text can be cutomized to retun pairs, empty tag or
just name of element.
|
substituteText | public boolean substituteText(JTextComponent c, int offset, int len, int modifiers)(Code) | | If called with SHIFT_MASK modified it createa a start tag and
end tag pair and place caret between them.
|
Methods inherited from org.netbeans.modules.xml.text.completion.XMLResultItem | public CompletionTask createDocumentationTask()(Code)(Java Doc) public CompletionTask createToolTipTask()(Code)(Java Doc) public void defaultAction(JTextComponent component)(Code)(Java Doc) protected Icon getIcon()(Code)(Java Doc) public CharSequence getInsertPrefix()(Code)(Java Doc) final public String getItemText()(Code)(Java Doc) Color getPaintColor()(Code)(Java Doc) public java.awt.Component getPaintComponent(javax.swing.JList list, boolean isSelected, boolean cellHasFocus)(Code)(Java Doc) public Component getPaintComponent(boolean isSelected)(Code)(Java Doc) public int getPreferredWidth(Graphics g, Font defaultFont)(Code)(Java Doc) public String getReplacementText(int modifiers)(Code)(Java Doc) public int getSortPriority()(Code)(Java Doc) public CharSequence getSortText()(Code)(Java Doc) public int getSubstituteOffset()(Code)(Java Doc) public boolean instantSubstitution(JTextComponent component)(Code)(Java Doc) public void processKeyEvent(KeyEvent e)(Code)(Java Doc) public void render(Graphics g, Font defaultFont, Color defaultColor, Color backgroundColor, int width, int height, boolean selected)(Code)(Java Doc) boolean replaceText(JTextComponent component, String text, int offset, int len)(Code)(Java Doc) public boolean substituteCommonText(JTextComponent c, int offset, int len, int subLen)(Code)(Java Doc) final public boolean substituteText(JTextComponent c, int offset, int len, boolean shift)(Code)(Java Doc) public boolean substituteText(JTextComponent c, int offset, int len, int modifiers)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|