|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.db.util.ExpressionEditSupport
public class ExpressionEditSupport
Convinience support class for expression editors. Covers undo, adding of expression templates and caret focus issues.
Constructor Summary | |
---|---|
ExpressionEditSupport(javax.swing.text.JTextComponent comp) |
Method Summary | |
---|---|
void |
addToExpressionField(java.lang.String text) Adds the given text to the registered expression text component. |
void |
clearUndo() |
void |
completeInsight(javax.swing.text.Document doc, int i, java.lang.Object insert) Complete insight for the specified position in the specified document, using the specified insight object. |
static java.util.Map |
createInsightMap(FromObject[] froms) |
protected java.lang.Object[] |
filter(java.lang.Object[] objs, java.lang.String filter) |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
javax.swing.ListCellRenderer |
getCellRenderer() Get the cell renderer used for the completion list this provider handles. |
static java.util.Collection |
getColumns(FromObject from) |
java.lang.Object[] |
getInsightData(javax.swing.text.Document doc, int i) Get insight data for the specified position in the specified document. |
boolean |
handlesInsight(javax.swing.text.Document doc, int i) Does this provider handle insight for the specified document? This method is normally called when an insight trigger of some kind happens (e.g. |
boolean |
isAutoPopupChar(char c) Should the specified character trigger an automatic popup completion list that might be handled by this insight provider? |
void |
setInsightMap(java.util.Map relsToCols) Map of usable relation aliases to Column[]. |
void |
setInsightObjects(java.util.Set objs) List of objects to insightfully show the names for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionEditSupport(javax.swing.text.JTextComponent comp)
Method Detail |
---|
public void addToExpressionField(java.lang.String text)
public void clearUndo()
public void setInsightMap(java.util.Map relsToCols)
public void setInsightObjects(java.util.Set objs)
protected java.lang.Object[] filter(java.lang.Object[] objs, java.lang.String filter)
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public javax.swing.ListCellRenderer getCellRenderer()
FieldInsightProvider
getCellRenderer
in interface FieldInsightProvider
public boolean handlesInsight(javax.swing.text.Document doc, int i)
FieldInsightProvider
handlesInsight
in interface FieldInsightProvider
doc
- the document of the component to provide insight fori
- the current caret position within the documentpublic java.lang.Object[] getInsightData(javax.swing.text.Document doc, int i)
FieldInsightProvider
getInsightData
in interface FieldInsightProvider
doc
- the document to provide insight fori
- the current caret position within the documentpublic void completeInsight(javax.swing.text.Document doc, int i, java.lang.Object insert)
FieldInsightProvider
completeInsight
in interface FieldInsightProvider
doc
- the document to completei
- the position to complete atinsert
- the insight object to complete withpublic boolean isAutoPopupChar(char c)
FieldInsightProvider
isAutoPopupChar
in interface FieldInsightProvider
c
- the character before the caret position.public static java.util.Map createInsightMap(FromObject[] froms)
public static java.util.Collection getColumns(FromObject from)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |