开发者

GWT menu item text alignments issues

Is it possible in GWT to set Menu Item text in two different alignments,what I mean to say is I want my menu item开发者_JS百科's label to be left justified and its accelerator key to be right justified.

i.e,

      Create     Alt+Ctrl+C 
      Edit          Shift+E
      Optimize       Ctrl+O


There's a "boolean asHTML" option when creating menu items, set that to true, then use CSS to left align and right align the text you want to align.

See the docs: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuItem.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜