Re: GWT listbox text color, selection

2013-01-21 Thread Faith
It can be changed using listBox.setStyleName();

On Friday, January 18, 2013 6:55:22 PM UTC+5:30, Nicholas DiMucci wrote:

 *blows cobwebs off this thread*

 Can anyone answer this question? I'm looking to change the font color of 
 individual items within a ListBox.

 On Thursday, June 12, 2008 3:27:03 PM UTC-4, mbracken wrote:

 how do you set the styles on individual elements? 

 On Jun 12, 9:28 am, jhulford jhulf...@gmail.com wrote: 
  You CAN set styles on individual option elements and it works fine in 
  Firefox and, I think, most other browsers except IE6. 
  
  On Jun 11, 12:14 pm, mbracken levi.brac...@gmail.com wrote: 
  
  
  
   the listbox doesn't provide the level of detail to change the style 
 on 
   an individual element or to make individual items unselectable.   you 
   can set a style for the selected item. 
  
   it sounds like you'll need to extend the listbox and add your own 
   functionality to accomplish what you're trying to do. 
  
   On Jun 11, 12:03 pm, kevinSC kevinshuo.c...@gmail.com wrote: 
  
is there a way to change the text color of individual elements in a 
listbox? also, is there a way to set an element in the listbox NOT 
selectable?- Hide quoted text - 
  
  - Show quoted text -



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zxIvlON_6oIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DataGrid doesn't show data in TabLayoutPanel

2013-01-21 Thread Faith
Is the tab containing DataGrid selected on load or should the user click 
the tab to display the Datagrid.

If it is the second scenario try invoking 

yourdatagrid.OnResize() on tab selection.

HTH.



On Thursday, January 17, 2013 11:04:27 PM UTC+5:30, James wrote:


 I have following questions:
  (1). DataGrid doesn't show data in TabLayoutPanel

 DataGrid creates a HeaderPanel that has three components for header, 
 footer, content (see lines 80 to 111 in HeaderPanel.java GWT 2.5). These 
 three components are represented by three html div as indicated by the 
 following screen shot from Firebugs. The content dive is initialized to 0 
 for its height.




 When DataGrid is added into SimpleLayoutPanel, content height is changed 
 into 260px as indicated by the following screen shot so DataGrid show data 
 as expected. During debug in Eclipse, I can not catch any api call to 
 change height.




 When DataGrid is added into a ScrollPanel that is added into 
 TabLayoutPanel, DataGrid doesn't show data. In Firebugs, I can not see any 
 height change, which is still 0. If I change the height in Firebugs, 
 DataGrid shows data.

 (2). I have a large GWT project,  I can see an icon Web app launch view 
 activator at lower right corner of Eclipse. This icon is much often 
 running to prevent my Eclipse running normally. It displays a few line of 
 messages every couple of seconds and gains focus in IDE. It is so 
 distracting during debug. Is there some way to get rid of this problem?


 I appreciate your help.


 James



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BWuZXvjDlBQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



cross-selection of CheckboxCell in CellTable

2011-02-10 Thread faith
Hi,

I've implemented a CellTable with three distinct columns of type

CheckboxCell checkBoxCell  = new CheckboxCell(true, false);
ColumnAnagrafica, Boolean checkColumn = new ColumnAnagrafica,
Boolean(checkBoxCell) {
@Override
public Boolean getValue(Anagrafica object) {
...

each of the column has a own instance of a MultiSelectionModel and a
FieldUpdater:

FieldUpdaterAnagrafica, Boolean fieldUpdater = new
FieldUpdaterAnagrafica, Boolean() {
@Override
public void update(int index, Anagrafica 
articolo, Boolean value)
{
// Called when the user clicks on a 
checkbox.
selectionModel.setSelected(articolo, 
value);
if(value){
//here select all the ckeck box
}
}
};
checkColumn.setFieldUpdater(fieldUpdater);

I can't find a way to fire the selection of all of the CheckBoxCell as
a consequence of the selection of the of them.

What do I need to do? Any hint?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.