|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
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 |
addInsightObjects(java.util.Set objs)
|
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)
|
static java.util.Map |
createInsightMap(SystemObject[] sysObjs)
|
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)
public void addInsightObjects(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()
CompletionProvider
getCellRenderer
in interface CompletionProvider
public boolean handlesInsight(javax.swing.text.Document doc, int i)
CompletionProvider
handlesInsight
in interface CompletionProvider
doc
- the document of the component to provide insight fori
- the current caret position within the document
public java.lang.Object[] getInsightData(javax.swing.text.Document doc, int i)
CompletionProvider
getInsightData
in interface CompletionProvider
doc
- the document to provide insight fori
- the current caret position within the document
public void completeInsight(javax.swing.text.Document doc, int i, java.lang.Object insert)
CompletionProvider
completeInsight
in interface CompletionProvider
doc
- the document to completei
- the position to complete atinsert
- the insight object to complete withpublic boolean isAutoPopupChar(char c)
CompletionProvider
isAutoPopupChar
in interface CompletionProvider
c
- the character before the caret position.public static java.util.Map createInsightMap(FromObject[] froms)
public static java.util.Map createInsightMap(SystemObject[] sysObjs)
public static java.util.Collection getColumns(FromObject from)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |