コード例 #1
0
  private void setBraces() {
    myOpeningBrace = new EditorCell_Brace(getContext(), getSNode(), true);
    myClosingBrace = new EditorCell_Brace(getContext(), getSNode(), false);

    if (myLastCellSelectionListener == null) {
      myLastCellSelectionListener = new MyLastCellSelectionListener();
    }
    addEditorCellAt(0, myOpeningBrace, true);
    addEditorCellAt(getChildCount(), myClosingBrace, true);
  }
コード例 #2
0
 private void addCell(EditorCell cellToAdd) {
   addEditorCellAt(getChildCount(), cellToAdd, false);
 }