Revision: 1692 http://svn.sourceforge.net/spring-rich-c/?rev=1692&view=rev Author: jhoskens Date: 2007-01-25 05:10:47 -0800 (Thu, 25 Jan 2007)
Log Message: ----------- Allow commands to have empty labels and only icons. Modified Paths: -------------- trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/CommandButtonLabelInfo.java trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/DefaultCommandConfigurer.java Modified: trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/CommandButtonLabelInfo.java =================================================================== --- trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/CommandButtonLabelInfo.java 2007-01-25 11:26:01 UTC (rev 1691) +++ trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/CommandButtonLabelInfo.java 2007-01-25 13:10:47 UTC (rev 1692) @@ -47,7 +47,7 @@ public final class CommandButtonLabelInfo implements ButtonConfigurer { /** A default instance to be used for command buttons with no label information. */ - public static final CommandButtonLabelInfo BLANK_BUTTON_LABEL = new CommandButtonLabelInfo("commandLabel"); + public static final CommandButtonLabelInfo BLANK_BUTTON_LABEL = new CommandButtonLabelInfo(""); private final LabelInfo labelInfo; Modified: trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/DefaultCommandConfigurer.java =================================================================== --- trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/DefaultCommandConfigurer.java 2007-01-25 11:26:01 UTC (rev 1691) +++ trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/config/DefaultCommandConfigurer.java 2007-01-25 13:10:47 UTC (rev 1692) @@ -83,9 +83,6 @@ CommandFaceDescriptor face = new CommandFaceDescriptor(); configurer.configure(face, objectName); command.setFaceDescriptor(face); - if (face.isBlank()) { - face.setButtonLabelInfo("&" + command.getId()); - } return command; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs