public class DocumentService extends BaseService implements DocumentEventSender
BaseService.OnStart, BaseService.OnStop, BaseService.UiAction, BaseService.UiActionBase, BaseService.UiActionField, BaseService.UiActionMethod, BaseService.UiMenu| Modifier and Type | Field and Description |
|---|---|
protected static Icon |
refreshIcon |
protected static Icon |
refreshIconSmall |
protected static Icon |
savedIcon |
protected static Icon |
savedIconSmall |
protected static Icon |
saveIcon |
protected static Icon |
saveIconSmall |
actionFieldSet, actionMethodSet, initUiActionsSuccess, MENU_FIELD_NAME, runningstartCallLevel, startStopSync, stopCallLevelserviceEventQueue| Constructor and Description |
|---|
DocumentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentEvent(DocumentEvent de)
Добавляет событие в очередь сообщений
|
Closeable |
addDocumentListener(DocumentListener listener)
Добавляет подписчика на события
|
Closeable |
addDocumentListener(DocumentListener listener,
boolean weakLink)
Добавляет подписчика на события
|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
fireDocumentEvent(DocumentEvent event)
Уведомляет подписчиков о событии
|
void |
fireDocumentEvents()
Рассылает все события из очереди подписчикам
|
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue) |
MenuContainer |
getCreateNewMenu() |
DockingService |
getDockingService() |
org.mapdb.Atomic.Long |
getDocumentIdSeq()
Генератор последовательных номеров документов
|
Set<DocumentListener> |
getDocumentListeners()
Возвращает подписчиков на события
|
DocumentServiceConf |
getDocumentServiceConf() |
MapDB2Service |
getMapDB2Service() |
PropertyChangeListener[] |
getPropertyChangeListeners() |
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName) |
static Icon |
getRefreshIcon() |
static Icon |
getRefreshIconSmall() |
static Icon |
getSavedIcon() |
static Icon |
getSavedIconSmall() |
static Icon |
getSaveIcon() |
static Icon |
getSaveIconSmall() |
boolean |
hasDocumentListener(DocumentListener listener)
Проверяет наличие подписчика
|
boolean |
hasListeners(String propertyName) |
Long |
nextDocumentId()
Генерация очередного номера документа
|
protected void |
onServiceStart() |
bibliothek.gui.dock.common.MultipleCDockable |
openNewDocument(bibliothek.gui.dock.common.MultipleCDockableFactory fact) |
bibliothek.gui.dock.common.intern.CDockable |
openSimpleDocument(JComponent component,
String title,
Icon icon) |
protected void |
reinitConfWithMapDB(MapDB2Service mdb) |
void |
removeAllDocumentListeners()
Удаляет всех подписчиков
|
void |
removeDocumentListener(DocumentListener listener)
Удаляет подписчика от рассылки уведомлений
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
buttonGroup, getActionFieldSet, getActionMethodSet, getActionsService, getButtonGroup, getMenuService, getStartableMethodsList, getStartableMethodsMap, getStoppableMethodsList, getStoppableMethodsMap, initUiActionError, initUiActions, isRunning, onStart, onStopfireStarted, fireStarting, fireStopped, fireStopping, getServiceByStopper, getServiceDependencies, isDetectCycleStart, isDetectCycleStop, onResolvedDependencies, start, stop, stopByDependencyaddServiceEvent, addServiceListener, addServiceListener, findFirstService, findServices, findServices, findServices, fireServiceEvent, fireServiceEvents, getConsole, getFieldDependencies, getInitDependenciesCallCount, getServiceListeners, getUnresolvedDependencies, hasServiceListener, init, initDependencies, instances, isResolvedDependencies, listeners, onInitServicesEnd, removeServiceListener, resolveDependecyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitaddServiceEvent, addServiceListener, addServiceListener, fireServiceEvents, getServiceListeners, hasServiceListener, removeServiceListenerprotected static volatile Icon saveIconSmall
protected static volatile Icon saveIcon
protected static volatile Icon savedIconSmall
protected static volatile Icon savedIcon
protected static volatile Icon refreshIconSmall
protected static volatile Icon refreshIcon
public DockingService getDockingService()
public MapDB2Service getMapDB2Service()
public boolean hasDocumentListener(DocumentListener listener)
DocumentEventSenderhasDocumentListener in interface DocumentEventSenderlistener - подписчикpublic Set<DocumentListener> getDocumentListeners()
DocumentEventSendergetDocumentListeners in interface DocumentEventSenderpublic Closeable addDocumentListener(DocumentListener listener)
DocumentEventSenderaddDocumentListener in interface DocumentEventSenderlistener - подписичкpublic Closeable addDocumentListener(DocumentListener listener, boolean weakLink)
DocumentEventSenderaddDocumentListener in interface DocumentEventSenderlistener - подписичкweakLink - true - добавляет подписчика как weak ссылку / false- как hard ссылкуpublic void removeDocumentListener(DocumentListener listener)
DocumentEventSenderremoveDocumentListener in interface DocumentEventSenderlistener - подписичикpublic void fireDocumentEvent(DocumentEvent event)
DocumentEventSenderfireDocumentEvent in interface DocumentEventSenderevent - событиеpublic void removeAllDocumentListeners()
DocumentEventSenderremoveAllDocumentListeners in interface DocumentEventSenderpublic void addDocumentEvent(DocumentEvent de)
DocumentEventSenderaddDocumentEvent in interface DocumentEventSenderde - событиеpublic void fireDocumentEvents()
DocumentEventSenderfireDocumentEvents in interface DocumentEventSenderpublic org.mapdb.Atomic.Long getDocumentIdSeq()
public Long nextDocumentId()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public PropertyChangeListener[] getPropertyChangeListeners()
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public boolean hasListeners(String propertyName)
public DocumentServiceConf getDocumentServiceConf()
protected void reinitConfWithMapDB(MapDB2Service mdb)
protected void onServiceStart()
public MenuContainer getCreateNewMenu()
public bibliothek.gui.dock.common.MultipleCDockable openNewDocument(bibliothek.gui.dock.common.MultipleCDockableFactory fact)
public bibliothek.gui.dock.common.intern.CDockable openSimpleDocument(JComponent component, String title, Icon icon)
public static Icon getSaveIconSmall()
public static Icon getSaveIcon()
public static Icon getSavedIconSmall()
public static Icon getSavedIcon()
public static Icon getRefreshIconSmall()
public static Icon getRefreshIcon()
Copyright © 2018. All rights reserved.