public InlineText findTrailingText() { if (getChildCount() == 0) { return null; } for (int offset = getChildCount() - 1; offset >= 0; offset--) { Box child = getChild(offset); if (child instanceof InlineLayoutBox) { InlineText result = ((InlineLayoutBox)child).findTrailingText(); if (result != null && result.isEmpty()) { continue; } return result; } else { return null; } } return null; }
public InlineText findTrailingText() { if (getChildCount() == 0) { return null; } for (int offset = getChildCount() - 1; offset >= 0; offset--) { Box child = getChild(offset); if (child instanceof InlineLayoutBox) { InlineText result = ((InlineLayoutBox)child).findTrailingText(); if (result != null && result.isEmpty()) { continue; } return result; } else { return null; } } return null; }
public InlineText findTrailingText() { if (getInlineChildCount() == 0) { return null; } InlineText result = null; for (int offset = getInlineChildCount() - 1; offset >= 0; offset--) { Object child = getInlineChild(offset); if (child instanceof InlineText) { result = (InlineText)child; if (result.isEmpty()) { continue; } return result; } else if (child instanceof InlineLayoutBox) { result = ((InlineLayoutBox)child).findTrailingText(); if (result != null && result.isEmpty()) { continue; } return result; } else { return null; } } return result; }
public InlineText findTrailingText() { if (getInlineChildCount() == 0) { return null; } InlineText result = null; for (int offset = getInlineChildCount() - 1; offset >= 0; offset--) { Object child = getInlineChild(offset); if (child instanceof InlineText) { result = (InlineText)child; if (result.isEmpty()) { continue; } return result; } else if (child instanceof InlineLayoutBox) { result = ((InlineLayoutBox)child).findTrailingText(); if (result != null && result.isEmpty()) { continue; } return result; } else { return null; } } return result; }