|
|
@ -17,6 +17,7 @@ import com.fr.transaction.WorkerCallBack; |
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -24,6 +25,8 @@ import java.awt.event.ActionEvent; |
|
|
|
* StyleList Action |
|
|
|
* StyleList Action |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class StyleListAction extends UpdateAction { |
|
|
|
public class StyleListAction extends UpdateAction { |
|
|
|
|
|
|
|
public static final Dimension WINDOW_CUSTOM_SIZE = new Dimension(710, 600); |
|
|
|
|
|
|
|
|
|
|
|
public StyleListAction() { |
|
|
|
public StyleListAction() { |
|
|
|
this.setMenuKeySet(PREDEFINED_STYLES); |
|
|
|
this.setMenuKeySet(PREDEFINED_STYLES); |
|
|
|
this.setName(getMenuKeySet().getMenuKeySetName() + "..."); |
|
|
|
this.setName(getMenuKeySet().getMenuKeySetName() + "..."); |
|
|
@ -40,7 +43,7 @@ public class StyleListAction extends UpdateAction { |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
DesignerFrame designerFrame = DesignerContext.getDesignerFrame(); |
|
|
|
DesignerFrame designerFrame = DesignerContext.getDesignerFrame(); |
|
|
|
final StyleManagerPane styleListPane = new StyleManagerPane(); |
|
|
|
final StyleManagerPane styleListPane = new StyleManagerPane(); |
|
|
|
final BasicDialog styleListDialog = styleListPane.showWindow(designerFrame); |
|
|
|
final BasicDialog styleListDialog = styleListPane.showWindowWithCustomSize(designerFrame, null, WINDOW_CUSTOM_SIZE); |
|
|
|
styleListDialog.addDialogActionListener(new DialogActionAdapter() { |
|
|
|
styleListDialog.addDialogActionListener(new DialogActionAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void doOk() { |
|
|
|
public void doOk() { |
|
|
@ -52,7 +55,7 @@ public class StyleListAction extends UpdateAction { |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
styleListPane.update(ServerPreferenceConfig.getInstance()); |
|
|
|
styleListPane.update(ServerPreferenceConfig.getInstance()); |
|
|
|
} |
|
|
|
} |
|
|
|
}.addCallBack(new CallBackAdaptor(){ |
|
|
|
}.addCallBack(new CallBackAdaptor() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void afterCommit() { |
|
|
|
public void afterCommit() { |
|
|
|
DesignerContext.getDesignerBean("predefinedStyle").refreshBeanElement(); |
|
|
|
DesignerContext.getDesignerBean("predefinedStyle").refreshBeanElement(); |
|
|
|