@ -37,11 +37,11 @@ public class WriteShortCutsPane extends JPanel{
private UILabel nextRowHK ;
private UILabel nextRowHK ;
private UILabel preCol ;
private UILabel preCol ;
private UILabel preRow ;
private UILabel preRow ;
public WriteShortCutsPane ( ) {
public WriteShortCutsPane ( ) {
this . setLayout ( new BorderLayout ( ) ) ;
this . setLayout ( new BorderLayout ( ) ) ;
this . add ( createContentPane ( ) , BorderLayout . NORTH ) ;
this . add ( createContentPane ( ) , BorderLayout . NORTH ) ;
if ( ! ServerPreferenceConfig . getInstance ( ) . isWriteShortCuts ( ) ) {
if ( ! ServerPreferenceConfig . getInstance ( ) . isWriteShortCuts ( ) ) {
nextColString = "Enter" ;
nextColString = "Enter" ;
nextRowString = "Tab" ;
nextRowString = "Tab" ;
@ -60,10 +60,10 @@ public class WriteShortCutsPane extends JPanel{
return contentPane ;
return contentPane ;
}
}
private JPanel getFeatureNamePane ( ) {
private JPanel getFeatureNamePane ( ) {
JPanel featureNamePane = new JPanel ( new BorderLayout ( ) ) ;
JPanel featureNamePane = new JPanel ( new BorderLayout ( ) ) ;
featureNamePane . setBorder ( BorderFactory . createEmptyBorder ( 16 , 0 , 0 , 0 ) ) ;
featureNamePane . setBorder ( BorderFactory . createEmptyBorder ( 10 , 0 , 0 , 0 ) ) ;
UILabel name = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Feature_Name" ) , SwingConstants . RIGHT ) ;
UILabel name = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Feature_Name" ) , SwingConstants . RIGHT ) ;
UILabel nextCol = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Next_Column" ) , SwingConstants . CENTER ) ;
UILabel nextCol = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Next_Column" ) , SwingConstants . CENTER ) ;
UILabel nextRow = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Next_Row" ) , SwingConstants . CENTER ) ;
UILabel nextRow = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Next_Row" ) , SwingConstants . CENTER ) ;
@ -75,13 +75,13 @@ public class WriteShortCutsPane extends JPanel{
JPanel centerPane = new JPanel ( new BorderLayout ( ) ) ;
JPanel centerPane = new JPanel ( new BorderLayout ( ) ) ;
centerPane . setBorder ( BorderFactory . createEmptyBorder ( 0 , 20 , 0 , 0 ) ) ;
centerPane . setBorder ( BorderFactory . createEmptyBorder ( 0 , 20 , 0 , 0 ) ) ;
centerPane . add ( column ( 24 ,
centerPane . add ( column ( 10 ,
row ( 10 , cell ( name ) . weight ( 0 . 13 ) , cell ( nextCol ) . weight ( 0 . 15 ) , cell ( new JPanel ( ) ) . weight ( 0 . 12 ) , cell ( nextRow ) . weight ( 0 . 15 ) , flex ( 0 . 45 ) ) ,
row ( 10 , cell ( name ) . weight ( 0 . 13 ) , cell ( nextCol ) . weight ( 0 . 15 ) , cell ( new JPanel ( ) ) . weight ( 0 . 12 ) , cell ( nextRow ) . weight ( 0 . 15 ) , flex ( 0 . 45 ) ) ,
row ( 10 , cell ( shortName ) . weight ( 0 . 13 ) , cell ( nextColHK ) . weight ( 0 . 15 ) , cell ( switchBtnPane ) . weight ( 0 . 12 ) , cell ( nextRowHK ) . weight ( 0 . 15 ) , flex ( 0 . 45 ) )
row ( 10 , cell ( shortName ) . weight ( 0 . 13 ) , cell ( nextColHK ) . weight ( 0 . 15 ) , cell ( switchBtnPane ) . weight ( 0 . 12 ) , cell ( nextRowHK ) . weight ( 0 . 15 ) , flex ( 0 . 45 ) )
) . getComponent ( ) ) ;
) . getComponent ( ) ) ;
featureNamePane . add ( centerPane , BorderLayout . CENTER ) ;
featureNamePane . add ( centerPane , BorderLayout . CENTER ) ;
return featureNamePane ;
return featureNamePane ;
}
}
@ -96,7 +96,7 @@ public class WriteShortCutsPane extends JPanel{
private JPanel getHintsPane ( ) {
private JPanel getHintsPane ( ) {
JPanel hintsPane = new JPanel ( new BorderLayout ( ) ) ;
JPanel hintsPane = new JPanel ( new BorderLayout ( ) ) ;
hintsPane . setBorder ( BorderFactory . createEmptyBorder ( 16 , 0 , 0 , 0 ) ) ;
hintsPane . setBorder ( BorderFactory . createEmptyBorder ( 10 , 0 , 0 , 0 ) ) ;
UILabel systemDefault = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_System_Default" ) , SwingConstants . RIGHT ) ;
UILabel systemDefault = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_System_Default" ) , SwingConstants . RIGHT ) ;
UILabel preColText = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Previous_Column" ) , SwingConstants . CENTER ) ;
UILabel preColText = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Previous_Column" ) , SwingConstants . CENTER ) ;
@ -107,19 +107,19 @@ public class WriteShortCutsPane extends JPanel{
JPanel centerPane = new JPanel ( new BorderLayout ( ) ) ;
JPanel centerPane = new JPanel ( new BorderLayout ( ) ) ;
centerPane . setBorder ( BorderFactory . createEmptyBorder ( 0 , 20 , 0 , 0 ) ) ;
centerPane . setBorder ( BorderFactory . createEmptyBorder ( 0 , 20 , 0 , 0 ) ) ;
centerPane . add ( column ( 24 ,
centerPane . add ( column ( 10 ,
row ( 10 , cell ( systemDefault ) . weight ( 0 . 13 ) , cell ( preColText ) . weight ( 0 . 24 ) , cell ( preCol ) . weight ( 0 . 14 ) , flex ( 0 . 64 ) ) ,
row ( 10 , cell ( systemDefault ) . weight ( 0 . 13 ) , cell ( preColText ) . weight ( 0 . 24 ) , cell ( preCol ) . weight ( 0 . 14 ) , flex ( 0 . 64 ) ) ,
row ( 10 , cell ( new JPanel ( ) ) . weight ( 0 . 13 ) , cell ( preRowText ) . weight ( 0 . 24 ) , cell ( preRow ) . weight ( 0 . 14 ) , flex ( 0 . 64 ) )
row ( 10 , cell ( new JPanel ( ) ) . weight ( 0 . 13 ) , cell ( preRowText ) . weight ( 0 . 24 ) , cell ( preRow ) . weight ( 0 . 14 ) , flex ( 0 . 64 ) )
) . getComponent ( ) ) ;
) . getComponent ( ) ) ;
hintsPane . add ( centerPane , BorderLayout . CENTER ) ;
hintsPane . add ( centerPane , BorderLayout . CENTER ) ;
return hintsPane ;
return hintsPane ;
}
}
public ActionListener getListener ( ) {
public ActionListener getListener ( ) {
ActionListener actionListener = new ActionListener ( ) {
ActionListener actionListener = new ActionListener ( ) {
@Override
@Override
public void actionPerformed ( ActionEvent e ) {
public void actionPerformed ( ActionEvent e ) {
String temp = nextColString ;
String temp = nextColString ;
@ -136,10 +136,10 @@ public class WriteShortCutsPane extends JPanel{
} ) ;
} ) ;
}
}
} ;
} ;
return actionListener ;
return actionListener ;
}
}
private void switchColRow ( ) {
private void switchColRow ( ) {
nextColHK . setText ( nextColString ) ;
nextColHK . setText ( nextColString ) ;
nextRowHK . setText ( nextRowString ) ;
nextRowHK . setText ( nextRowString ) ;