@Test public void shouldAlignToLeftByDefault() { assertEquals(Alignment.LEFT, gridColumn.getAlign()); }
public Alignment getAlign() { Alignment effectiveAlign = align; if (effectiveAlign == null) { if (fields.size() == 1 && Number.class.isAssignableFrom(fields.get(0).getType().getType())) { effectiveAlign = Alignment.RIGHT; } else { effectiveAlign = Alignment.LEFT; } } Preconditions.checkState(effectiveAlign != null, "getAlign() should never returns null. It seems to be race condition issue.."); return effectiveAlign; }
GridComponentColumn { public Alignment getAlign() { Alignment effectiveAlign = align; if (effectiveAlign == null) { if (fields.size() == 1 && Number.class.isAssignableFrom(fields.get(0).getType().getType())) { effectiveAlign = Alignment.RIGHT; } else { effectiveAlign = Alignment.LEFT; } } Preconditions.checkState(effectiveAlign != null, "getAlign() should never returns null. It seems to be race condition issue.."); return effectiveAlign; } }
GridComponentColumn { public Alignment getAlign() { Alignment effectiveAlign = align; if (effectiveAlign == null) { if (fields.size() == 1 && Number.class.isAssignableFrom(fields.get(0).getType().getType())) { effectiveAlign = Alignment.RIGHT; } else { effectiveAlign = Alignment.LEFT; } } Preconditions.checkState(effectiveAlign != null, "getAlign() should never returns null. It seems to be race condition issue.."); return effectiveAlign; } GridComponentColumn(final String name);  GridComponentColumn(final String name, final String extendingPluginIdentifier); }
GridComponentColumn { public Alignment getAlign() { Alignment effectiveAlign = align; if (effectiveAlign == null) { if (fields.size() == 1 && Number.class.isAssignableFrom(fields.get(0).getType().getType())) { effectiveAlign = Alignment.RIGHT; } else { effectiveAlign = Alignment.LEFT; } } Preconditions.checkState(effectiveAlign != null, "getAlign() should never returns null. It seems to be race condition issue.."); return effectiveAlign; } GridComponentColumn(final String name);  GridComponentColumn(final String name, final String extendingPluginIdentifier); String getName(); void setWidth(final Integer width); Integer getWidth(); boolean isLink(); void setLink(final boolean link); String getCorrespondingView(); String getCorrespondingField(); void setCorrespondingView(final String correspondingView); void setCorrespondingField(final String correspondingField); String getCorrespondingViewField(); void setCorrespondingViewField(String correspondingViewField); boolean getAttachment(); void setAttachment(boolean attachment); boolean isHidden(); void setAlign(final Alignment align); Alignment getAlign(); String getClassesNames(); void setClassesNames(final String classesNames); String getClassesCondition(); void setClassesCondition(final String classesCondition); void setHidden(final boolean hidden); void setExpression(final String expression); String getExpression(); void addField(final FieldDefinition field); List<FieldDefinition> getFields(); String getAuthorizationRole(); void setAuthorizationRole(String authorizationRole); String getValue(final Entity entity, final Locale locale); @Override int hashCode(); @Override boolean equals(final Object o); }
GridComponentColumn { public Alignment getAlign() { Alignment effectiveAlign = align; if (effectiveAlign == null) { if (fields.size() == 1 && Number.class.isAssignableFrom(fields.get(0).getType().getType())) { effectiveAlign = Alignment.RIGHT; } else { effectiveAlign = Alignment.LEFT; } } Preconditions.checkState(effectiveAlign != null, "getAlign() should never returns null. It seems to be race condition issue.."); return effectiveAlign; } GridComponentColumn(final String name);  GridComponentColumn(final String name, final String extendingPluginIdentifier); String getName(); void setWidth(final Integer width); Integer getWidth(); boolean isLink(); void setLink(final boolean link); String getCorrespondingView(); String getCorrespondingField(); void setCorrespondingView(final String correspondingView); void setCorrespondingField(final String correspondingField); String getCorrespondingViewField(); void setCorrespondingViewField(String correspondingViewField); boolean getAttachment(); void setAttachment(boolean attachment); boolean isHidden(); void setAlign(final Alignment align); Alignment getAlign(); String getClassesNames(); void setClassesNames(final String classesNames); String getClassesCondition(); void setClassesCondition(final String classesCondition); void setHidden(final boolean hidden); void setExpression(final String expression); String getExpression(); void addField(final FieldDefinition field); List<FieldDefinition> getFields(); String getAuthorizationRole(); void setAuthorizationRole(String authorizationRole); String getValue(final Entity entity, final Locale locale); @Override int hashCode(); @Override boolean equals(final Object o);  }