/** * Gets the {@link DockAction} which is handled by this model. This method may return <code>null</code> * because not every button actually is connected to a {@link DockAction}. * @return the action or <code>null</code> */ public DockAction getAction(){ if( trigger == null ){ return null; } return trigger.getAction(); }