Created
November 15, 2012 23:51
-
-
Save mudgen/4082498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EquipmentSettingsPage extends RecordActionTable<EquipmentRecord> { | |
public EquipmentSettingsPage(IConfigPage configPage) { | |
super(configPage); | |
// TODO Auto-generated constructor stub | |
} | |
@Override | |
public String[] getMenuPath() { | |
// TODO Auto-generated method stub | |
return null; | |
} | |
@Override | |
protected RecordMeta<EquipmentRecord> getRecordMeta() { | |
return EquipmentRecord.META; | |
} | |
@Override | |
protected String getTitleKey() { | |
return "EquipmentRecord.title"; | |
} | |
@Override | |
protected WebMarkupContainer newRecordAction(String id) { | |
return new NewRecordAction<EquipmentRecord>(id, configPage, getActionParentPanel(), getRecordMeta()) { | |
//@Override | |
//protected void setupNewRecord(EquipmentRecord record) { | |
// EquipmentSettingsPage.this.setupNewRecord(record); | |
//} | |
@Override | |
public IModel<String> getLabel() { | |
return Model.of("Create new Equipment Connection..."); | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment