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 QueryBuilderprotected final BaseSQLContext -
Constructor Summary
ConstructorsConstructorDescriptionControlOwner(ControlOwner owner, ControlOwner updateParent, QueryBuilder queryBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAfterUpdatedEventListener(EventListener listener) voidaddDestroyingEventListener(EventListener listener) voidprotected ComponentcalcAcOwnerFromOwner(Component owner) booleanprotected voidcollectSubqueryProxiesByRootNode(List list, AstNode rootNode) protected ComponentcreateControlInternal(int i) voidprotected AstNodeprotected voidvoidvoiddispose()protected voidprotected voidprotected voidprotected voidvoidvoidvoidprotected voidprotected voidvoidgatherPrepareAndFixupContext(List cteList, List fromSourceList, boolean inclParentQueryFromSources) protected voidprotected voidintgetControl(int index) intgetOwner()protected AstNodegetResultSQL(SQLBuilder builder) protected intgetSubqueryCountByRootNode(AstNode rootNode) booleanprotected booleanbooleanprotected voidloadSubQueries(AstNode ast) protected booleanmakeVisible(int i) booleannotifyDatasourceDestroying(DataSource datasource) protected booleannotifyDatasourceDestroyingInternal(DataSource datasource) protected voidnotifyDatasourceReplaced(DataSource datasourceFrom, DataSource datasourceTo) protected voidnotifyDatasourceReplacedInternal(DataSource datasourceFrom, DataSource datasourceTo) voidvoidprotected voidregisterUpdateChild(ControlOwner child) voidremoveAfterUpdatedEventListener(EventListener listener) voidremoveDestroyingEventListener(EventListener listener) protected voidrestoreControlParams(int i) protected voidsaveControlParams(int i) protected voidsetDisposing(boolean value) voidsetOwner(ControlOwner owner) voidsetUpdateParent(ControlOwner value) protected voidshowSubQueriesPopup(Point pos, List subQueries) protected voidprotected voidupdateContolParams(int i)
-
Field Details
-
sqlContext
-
children
-
queryBuilder
-
controls
-
-
Constructor Details
-
ControlOwner
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein 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
-