Home | History | Annotate | Download | only in table

Lines Matching refs:PropertyInfo

114   private List<PropertyInfo> m_properties;
131 m_collapsedIds.add("|" + name); // See PropertyInfo constructor for id syntax
327 * {@link PropertyInfo} was selected.
421 PropertyInfo propertyInfo = m_properties.get(index);
423 if (isLocationState(propertyInfo, event.x)) {
426 propertyInfo.flip();
497 PropertyInfo propertyInfo = m_properties.get(propertyIndex);
498 Property property = propertyInfo.getProperty();
502 int titleX = getTitleTextX(propertyInfo);
537 private PropertyInfo m_activePropertyInfo;
542 * Tries to activate editor for {@link PropertyInfo} under cursor.
695 * @return the <code>X</code> position for first pixel of {@link PropertyInfo} title (location of
698 private int getTitleX(PropertyInfo propertyInfo) {
699 return MARGIN_LEFT + getLevelIndent() * propertyInfo.getLevel();
703 * @return the <code>X</code> position for first pixel of {@link PropertyInfo} title text.
705 private int getTitleTextX(PropertyInfo propertyInfo) {
706 return getTitleX(propertyInfo) + getLevelIndent();
741 private boolean isLocationState(PropertyInfo propertyInfo, int x) {
742 int levelX = getTitleX(propertyInfo);
743 return propertyInfo.isComplex() && levelX <= x && x <= levelX + m_stateWidth;
796 for (PropertyInfo propertyInfo : m_properties) {
797 Property property = propertyInfo.getProperty();
813 // add PropertyInfo for each Property
817 PropertyInfo propertyInfo = new PropertyInfo(property);
818 m_properties.add(propertyInfo);
824 List<PropertyInfo> currentProperties = Lists.newArrayList(m_properties);
825 for (PropertyInfo propertyInfo : currentProperties) {
826 expanded |= propertyInfo.expandFromHistory();
839 PropertyInfo newActivePropertyInfo = null;
840 // try to find corresponding PropertyInfo
842 for (PropertyInfo propertyInfo : m_properties) {
843 if (propertyInfo.m_id.equals(m_activePropertyId)) {
844 newActivePropertyInfo = propertyInfo;
849 // set new PropertyInfo
882 for (PropertyInfo propertyInfo : m_properties) {
883 if (propertyInfo.m_property == property) {
884 setActivePropertyInfo(propertyInfo);
910 * Expands the {@link PropertyInfo} with given index.
927 PropertyInfo propertyInfo = getPropertyInfo(property);
928 if (propertyInfo != null) {
929 int index = m_properties.indexOf(propertyInfo);
930 int x = getTitleX(propertyInfo);
941 PropertyInfo propertyInfo = getPropertyInfo(property);
942 if (propertyInfo != null) {
943 int index = m_properties.indexOf(propertyInfo);
966 * @return the {@link PropertyInfo}for given {@link Property}.
968 private PropertyInfo getPropertyInfo(Property property) {
969 for (PropertyInfo propertyInfo : m_properties) {
970 if (propertyInfo.getProperty() == property) {
971 return propertyInfo;
1011 * Sets the new active {@link PropertyInfo} and sends event to {@link ISelectionChangedListener}
1014 private void setActivePropertyInfo(PropertyInfo activePropertyInfo) {
1125 * Draws all {@link PropertyInfo}'s, separators, etc.
1150 PropertyInfo propertyInfo = m_properties.get(i);
1151 drawProperty(gc, propertyInfo, y + 1, m_rowHeight - 1, clientArea.width
1189 PropertyInfo propertyInfo = m_properties.get(i);
1190 Property property = propertyInfo.getProperty();
1211 PropertyInfo propertyInfo = m_properties.get(i);
1213 if (propertyInfo.isExpanded()) {
1214 int index = m_properties.indexOf(propertyInfo);
1218 PropertyInfo nextPropertyInfo = m_properties.get(index2);
1219 if (nextPropertyInfo != propertyInfo
1220 && nextPropertyInfo.getLevel() <= propertyInfo.getLevel()) {
1227 int x = getTitleX(propertyInfo) + xOffset;
1240 * Draws single {@link PropertyInfo} in specified rectangle.
1242 private void drawProperty(GC gc, PropertyInfo propertyInfo, int y, int height, int width) {
1248 Property property = propertyInfo.getProperty();
1266 if (propertyInfo.isShowComplex()) {
1267 Image stateImage = propertyInfo.isExpanded() ? m_minusImage : m_plusImage;
1268 DrawUtils.drawImageCV(gc, stateImage, getTitleX(propertyInfo), y, height);
1288 int x = getTitleTextX(propertyInfo);
1345 // PropertyInfo
1353 private final class PropertyInfo {
1359 private List<PropertyInfo> m_children;
1366 public PropertyInfo(Property property) {
1370 private PropertyInfo(Property property, String idPrefix, int level) {
1490 for (PropertyInfo child : m_children) {
1510 for (PropertyInfo child : m_children) {
1533 * Prepares children {@link PropertyInfo}'s, for sub-properties.
1539 PropertyInfo subPropertyInfo = createSubPropertyInfo(subProperty);
1545 private PropertyInfo
1546 return new PropertyInfo(subProperty, m_id, m_level + 1);
1568 * @return <code>true</code> if this {@link PropertyInfo} was expanded from history.
1610 for (PropertyInfo info : m_properties) {