I had this same issue but was able to fix it by accessing the
FlexTable that holds the content inside the GFrame. A FlexTable then
has methods that accesses its cellFormatter which can then be used to
set its alignment. The problem is that the centerRow FlexTable that
holds the content of the window in GFrame is a protected variable. To
get around this I had to extend the GFrame class and create a new
method that would return the Flextable. Like this...
public FlexTable getInternalTable()
{
return centerRow;
}
Now once you have called the getInternalTable() method on ur extended
GFrame class and get the centerRow Flextable, you can now change the
GFrame content's alignment...
myExtendedGFrame myFrame = new myExtendedGFrame();
myFrame.getInternalTable().getCellFormatter().setVerticalAlignment(0,
1, HasVerticalAlignment.ALIGN_TOP);
myFrame.getInternalTable().getCellFormatter().setHorizontalAlignment(0,
1, HasHorizontalAlignment.ALIGN_LEFT);
Notice I'm accessing the cell at (0,1) of the FlexTable as that is the
cell with the content of the GFrame. I've only started using GWM since
ver 0.6.6 so I don't know about methods like
setContentHorizontalAlignment existing before that. It does seem odd
that they would disappear. Anyways this trick should get you around
the issue. Maybe Luciano could fill us in on why they were taken out
of the newer releases :)
Good luck,
Nate
On Aug 5, 12:26 pm, "Luciano Broussal" <
luciano.brous...@gmail.com>
wrote:
> > > > Am I missing something?- Hide quoted text -
>
> - Show quoted text -