Package com.adbs.querybuilder
Class ControlOwner
java.lang.Object
com.adbs.querybuilder.ControlOwner
- All Implemented Interfaces:
Disposable
- Direct Known Subclasses:
CriteriaItem
,CriteriaList
,DataSourceBase
,Link
,QueryBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ControlOwner>
protected final QueryBuilder
protected final BaseSQLContext
-
Constructor Summary
ConstructorsConstructorDescriptionControlOwner
(ControlOwner owner, ControlOwner updateParent, QueryBuilder queryBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAfterUpdatedEventListener
(EventListener listener) void
addDestroyingEventListener
(EventListener listener) void
protected Component
calcAcOwnerFromOwner
(Component owner) boolean
protected void
collectSubqueryProxiesByRootNode
(List list, AstNode rootNode) protected Component
createControlInternal
(int i) void
protected AstNode
protected void
void
void
dispose()
protected void
protected void
protected void
protected void
void
void
void
protected void
protected void
void
gatherPrepareAndFixupContext
(List cteList, List fromSourceList, boolean inclParentQueryFromSources) protected void
protected void
int
getControl
(int index) int
getOwner()
protected AstNode
getResultSQL
(SQLBuilder builder) protected int
getSubqueryCountByRootNode
(AstNode rootNode) boolean
protected boolean
boolean
protected void
loadSubQueries
(AstNode ast) protected boolean
makeVisible
(int i) boolean
notifyDatasourceDestroying
(DataSource datasource) protected boolean
notifyDatasourceDestroyingInternal
(DataSource datasource) protected void
notifyDatasourceReplaced
(DataSource datasourceFrom, DataSource datasourceTo) protected void
notifyDatasourceReplacedInternal
(DataSource datasourceFrom, DataSource datasourceTo) void
void
protected void
registerUpdateChild
(ControlOwner child) void
removeAfterUpdatedEventListener
(EventListener listener) void
removeDestroyingEventListener
(EventListener listener) protected void
restoreControlParams
(int i) protected void
saveControlParams
(int i) protected void
setDisposing
(boolean value) void
setOwner
(ControlOwner owner) void
setUpdateParent
(ControlOwner value) protected void
showSubQueriesPopup
(Point pos, List subQueries) protected void
protected void
updateContolParams
(int i)
-
Field Details
-
sqlContext
-
children
-
queryBuilder
-
controls
-
-
Constructor Details
-
ControlOwner
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-
getOwner
-
setOwner
-
getQueryBuilder
-
getSQLContext
-
getChildrenCount
public int getChildrenCount() -
isControlsCreated
public boolean isControlsCreated() -
getControlsCount
public int getControlsCount() -
getUpdateParent
-
setUpdateParent
-
isUpdating
public boolean isUpdating() -
getResultASTInternal
-
getResultAST
-
isDisposing
protected boolean isDisposing() -
setDisposing
protected void setDisposing(boolean value) -
getControl
-
getResultSQL
-
getResultSQL
-
calcAcOwnerFromOwner
-
destroyCachedResultASTs
protected void destroyCachedResultASTs() -
createResultAST
-
canCreateControls
public boolean canCreateControls() -
createControlInternal
-
saveControlParams
protected void saveControlParams(int i) -
restoreControlParams
protected void restoreControlParams(int i) -
updateContolParams
protected void updateContolParams(int i) -
makeVisible
protected boolean makeVisible(int i) -
doCreateControls
protected void doCreateControls() -
doDestroyControls
protected void doDestroyControls() -
doUpdateContolParams
public void doUpdateContolParams() -
registerUpdateChild
-
unregisterUpdateChild
-
doSQLUpdated
protected void doSQLUpdated() -
doAfterUpdated
protected void doAfterUpdated() -
loadSubQueries
-
collectSubqueryProxiesByRootNode
-
getSubqueryCountByRootNode
-
showSubQueriesPopup
-
getASTChildren
-
getASTChildrenForSubtree
-
notifyDatasourceDestroyingInternal
-
notifyDatasourceDestroying
-
notifyDatasourceReplacedInternal
-
notifyDatasourceReplaced
-
createControls
public void createControls() -
destroyControls
public void destroyControls() -
beginUpdate
public void beginUpdate() -
endUpdate
public void endUpdate() -
notifySQLUpdated
public void notifySQLUpdated() -
editProps
-
getPopupMenu
-
notifySQLUpdatedRecursive
public void notifySQLUpdatedRecursive() -
gatherPrepareAndFixupContext
-
addDestroyingEventListener
-
removeDestroyingEventListener
-
fireDestroyingEvent
-
addAfterUpdatedEventListener
-
removeAfterUpdatedEventListener
-
fireAfterUpdatedEvent
-
getVisibleDataSources
-